Display empty cell when the formula returns error

Rainmanne

Board Regular
Joined
Mar 10, 2016
Messages
120
Office Version
  1. 2013
Platform
  1. Windows
I usually prefer to hide error using "" in IF construction, something like
Code:
=if(iserror(),"",())

However, if you have another formula, which depends on this cell, it turns #VALUE !, when the error is hidden. So "" does not make the cell empty. I wonder if there is any other solution to display the cell empty, which will play nicely with formulas, where it is used?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi

Code:
=IFERROR([Formula],"")

:)

Never mind - Read the question before I had coffee :/
 
Last edited:
Upvote 0
1. Which cell was the original formula in (this cell) ?
2. What is the 'other' formula?
It usually depends, because I often use the IF construction to make cells empty for other reasons.
For example:
Code:
=IF(ISBLANK(B34),"",IF(E34="paid","",B34))

There are budget amounts in column B and outstanding amounts in column C (from which the formula above is taken) and a switch in column E. So if it's turned paid, then C34 should be empty. Interestingly, with SUM formula it works fine. So summing up all entries in column C works fine even if some of them turned blank using the above formula. However, if you refer to the blank cell directly (like =C34 or =G4+C34), it returns #VALUE !. Realising this, the workaround for me now is to refer to the cell through the SUM formula, like =SUM(C34), so it works. But I wonder if there is another way to display blank cells through formula and use them in other formulas without an error?
 
Upvote 0
A cell containing a formula is, by definition, not empty and cannot be so.
You have discovered one option to use SUM which ignores the text value ""
Another option would be to change the formula to =IF(ISBLANK(B34),0,IF(E34="paid",0,B34)) then the zero values would not be a problem for other calculations. (Further, you could custom format or conditionally format the cell to hide the zero values if you want.)
 
Upvote 0
Solution
A cell containing a formula is, by definition, not empty and cannot be so.
You have discovered one option to use SUM which ignores the text value ""
Another option would be to change the formula to =IF(ISBLANK(B34),0,IF(E34="paid",0,B34)) then the zero values would not be a problem for other calculations. (Further, you could custom format or conditionally format the cell to hide the zero values if you want.)
Thanks a lot!
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top