IF #N/A

  • Thread starter Thread starter RFJ
  • Start date Start date
R

RFJ

A particular formula sometimes generates an #N/A result (because of some
missing data elsewhere in the spreadsheet).

I want to be able to replace the #N/A with a more helpful error message eg :

IF((A1*A2)/A3="#N/A","Missing Data",A1/A2)

Can some SKS give me the correct syntax to do it.

TIA

Rob
 
=IF(ISNUMBER((A1*A2)/A3),A1/A2,"Missing Data")

Why do you change from (A1*A2)/A3 to A1/A2 - typo?
 
While ISNUMBER() certainly works, it will also mask other errors (e.g.,
#DIV/0, #VALUE!). For that reason I'd recommend ISNA() instead:

=IF(ISNA(A1*A2/A3),"Missing Data",A1*A2/A3)
 
Tx all - you pointed me in the right direction. ISERROR was even better as
it picked up a VALUE error message as well.
 
Are you sure you *want* to pick up #VALUE!?

That often indicates a problem with logic in your sheet. I usually find
it's better NOT to mask errors, and instead prevent/fix them.
 

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

Similar Threads


Back
Top