DIsplay a value of the cell calculation is #N/A

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have numerious calculations occuring in cells. Many times if certain values
cannot be calculted, #N/A appears. I would like the field to display "Null"
or "Nothing" if the error appears. How can this be done? I want a different
display instead of #N/A.
 
One way:

Assuming your original formula is something like:

=VLOOKUP(A1,J:K,2,FALSE)

you can trap the error:

=IF(ISNA(MATCH(A1,J:J,FALSE)),"Nothing",VLOOKUP(A1,J:K,2,FALSE))
 
Add the ISNA function.

e.g.

=IF(ISNA(VLOOKUP(H9,$C$2:$F$35,3,FALSE)),"",VLOOKUP(H9,$C$2:$F$35,3,FALSE))

Will return a blank looking cell if result is #N/A

For "Null" type Null between the double quotes in formula


Gord Dibben MS Excel MVP
 
I have numerious calculations occuring in cells. Many times if certain values
cannot be calculted, #N/A appears. I would like the field to display "Null"
or "Nothing" if the error appears. How can this be done? I want a different
display instead of #N/A.

=IF(ISNA(yourCalculation),"",yourCalculation)
or
=IF(ISNA(yourCalculation),"Null",yourCalculation)
 

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