在Excel中的引用单元格中显示空白值

时间:2013-12-15 14:46:52

标签: excel excel-formula

在Excel工作表中,我在一个单元格中填充了另一个单元格的值,例如单元格C2 = A2

但是,当单元格A2为空时,单元格C2的值填充为0(零)。

有没有让C2字段空白?

3 个答案:

答案 0 :(得分:4)

这可以解决您的问题:

=IF(ISBLANK(A2),"",A2)

答案 1 :(得分:0)

或者您甚至可以尝试使用C2 IF(A2="","",A2)

答案 2 :(得分:0)

如果可行(仅针对单个整列),仅仅更改格式可能适合。例如,0.00显示数字和零(到2 2DP)0.00;-0.00;不显示零。

进一步详情here,包括:

Create a custom number format

Open the workbook in which you want to create and store a custom number format.
On the Home tab, click the Dialog Box Launcher Button image next to Number.
In the Category box, click Custom.
In the Type list, select the number format that you want to customize.

The number format that you select appears in the Type box above the Type list.

 Note   When you select a built-in number format in the Type list, Excel creates a copy
 of that number format that you can then customize. The original number format in the
 Type list cannot be changed or deleted.  

尽管表面外观相同,但空单元格和包含“”的单元格可能表现不同。