How do I recognize "#VALUE!" in Excel spreadsheets?

phan picture phan · May 21, 2012 · Viewed 169.4k times · Source

I'd like to write a formula such that if cell A1 displays #VALUE!, say TRUE in cell B1.

Here's my formula in cell B1:

=IF(A1="#VALUE!", "TRUE", "FALSE")

I get FALSE when A1 does not say #VALUE! so that part is fine. But, when it does say #VALUE!, I get a #VALUE! error in cell B1, when I want it to say TRUE. How do I do this?

Answer

Charleh picture Charleh · May 21, 2012

Use IFERROR(value, value_if_error)