How to suppress #VALUE!

  • Thread starter Thread starter Philip
  • Start date Start date
P

Philip

After setting up functions, the spreadsheet appears ugly when there are
empty input cells. Is there any method in suppressing the display of
#VALUE! etc, say assigning white colour to these error words? Thanks!
 
Fix the errors, dont just hide them, eg

Instead of your_formula that appears to give you the error when an input
cell is empty (assume it is A1), try

=IF(A1="","",your_formula)

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------­------------------------------­----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------­------------------------------­----------------
 
You could add conditional formatting where the "formula is":
=ISERROR(A1)
Then, set format to the background color of your worksheet for this
condition.

Add this conditional format in the A1 cell (or whichever the first cell
in the range where you expect errors that need to be hidden), then
paint the format to any other cells where you want this behavior.

As mentioned above, this is not the preferred handling of such an
issue. You're better off adding an
IF(ISERROR(formulaThatMightCauseError),"Error
Message",formulaThatMightCauseError) kind of error-checking to your
worksheet.


Philip \/\/|20+3:
 
Yes, my other project needs the hiding of error message otherwise the
appearance looks very untidy, in particular in its initial stage when
building up the necessary data.
For example, here is the formula and the cell holding it is at B37
Any missing data between B2 and B36 will cause error at B37

=ISERROR(INDEX(LINEST(B2:B36,$A$2:$A$36),2))

The result returned at B37 is TRUE instead of #VALUE!
Select B37 and then click Format /Conditional format at tool bar. But
couldn't find the background colour setting. Please advise path or setup
details. Thanks!
 
Philip

I would suppress this by formula not CF.

=IF(ISERROR(INDEX(LINEST(B2:B36,$A$2:$A$36),2)),"",INDEX(LINEST(B2:B36,$A$2:$A$36),2))

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
www.nickhodge.co.uk
 
Hi Nick,

Thank you. It serves the purpose I want.
This discussion board is very helpful.
Cheers!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top