简体   繁体   中英

Check if cell is empty or not

I'm new to excel , I need to check if cell is empty put zero and if not don't change value

I tried to use =IF(" ",0,**)

But instead of ** I don't know How can i make it don't change the value?

请尝试此操作, =IF(A1>0,A1,0)请注意:这将在不同的列上工作,而不是相同。

try this

=IF(ISBLANK(A1),0,A1)

the problem with your formula is that there is no cell reference. Here we are checking the cell A1 if it is empty or not.

Update

Since it seems that the cell are not actually blank, try to use this formulae

=IF(TRIM(A1)="",0,A1)

You can actually join the two formula

=IF(OR(ISBLANK(A1),TRIM(A1)=""),0,A1)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM