Forum

Notifications
Clear all

Return Blank with IFERROR

3 Posts
3 Users
0 Reactions
160 Views
(@dmdavala)
Posts: 28
Eminent Member
Topic starter
 

I am using IFERROR and I want my error argument to be a blank.  

 

My formula is =IFERROR(Statement being evaluated,"")

 

If there is an error, then the cell appears as a blank.  The problem is if I perform a mathematical operation on the cell, I get #VALUE.

 

If I perform a mathematical operation on a cell that is actually blank, the cell acts as a 0.

 

I don't want to use 0 as the error argument.  Is there a way to do this?

 
Posted : 10/03/2023 12:22 pm
(@mynda)
Posts: 4762
Member Admin
 

Hi David,

I don't know of a way you can do this, however if the issue is that you don't want to see zeros in your spreadsheet, then you could use a custom number format to hide them e.g. 0;-0; will only show positive and negative values greater than or smaller than zero. Any zero values will be displayed as a blank cell.

This way you can use =IFERROR(Statement being evaluated,0) and math operations on the result will still work.

More on hiding zeros with custom number formats here.

Mynda

 
Posted : 10/03/2023 9:51 pm
(@jstewart)
Posts: 216
Estimable Member
 

If I am understanding you correctly, it sounds like you don't want a calculation performed if a cell is blank? If that is the case, a simple IF statement should do the trick. 

=IF(cell your evaluating<>"",calculation,"")

If your cell is not blank then do the calculation, otherwise display a blank cell (Or whatever you are needing done if the cell is blank).

 
Posted : 11/03/2023 12:03 pm
Share: