#1   Report Post  
RFJ
 
Posts: n/a
Default IF #N/A

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



  #2   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

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

Why do you change from (A1*A2)/A3 to A1/A2 - typo?

RFJ wrote:
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



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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)


In article ,
Aladin Akyurek wrote:

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

Why do you change from (A1*A2)/A3 to A1/A2 - typo?

  #4   Report Post  
RFJ
 
Posts: n/a
Default

Tx all - you pointed me in the right direction. ISERROR was even better as
it picked up a VALUE error message as well.

"JE McGimpsey" wrote in message
...
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)


In article ,
Aladin Akyurek wrote:

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

Why do you change from (A1*A2)/A3 to A1/A2 - typo?



  #5   Report Post  
JE McGimpsey
 
Posts: n/a
Default

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.


In article ,
"RFJ" wrote:

Tx all - you pointed me in the right direction. ISERROR was even better as
it picked up a VALUE error message as well.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"