Conditional Formatting of #n/a result

  • Thread starter Thread starter sstook
  • Start date Start date
S

sstook

I am using a vlookup function which, when it returns the
#n/a result I would like to format conditionally, i.e. if
it is #n/a, blank out the cell. How would I do this?
 
No need to blank anything out. Just add to your formula to get something
like this (copy from here and paste into your formula bar) :-

=IF(ISERROR(VLOOKUP(A1,$B$10:$C$100,2,FALSE)),0,VLOOKUP(A1,$B$10:$C$100,2,FALSE))
 

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