Excel 2007: Vlookup - Results without #N/A

O

ocean mist

in my results column, I have a series of #N/A where there is no result. Is
there anyway to have that left blank unless there IS a value to return?
 
J

JLatham

Yes, "wrap" your VLOOKUP() in a test for the error. There is a specific test
for the #N/A error:

example formula that could return #N/A: =VLOOKUP(A1,Sheet2!B1:Z1000,23,False)
wrapped up to prevent the display:
=IF(ISNA(VLOOKUP(A1,Sheet2!B1:Z1000,23,False)),"",VLOOKUP(A1,Sheet2!B1:Z1000,23,False))
 
O

ocean mist

Yea!! Worked like a charm. Thank you so much!

JLatham said:
Yes, "wrap" your VLOOKUP() in a test for the error. There is a specific test
for the #N/A error:

example formula that could return #N/A: =VLOOKUP(A1,Sheet2!B1:Z1000,23,False)
wrapped up to prevent the display:
=IF(ISNA(VLOOKUP(A1,Sheet2!B1:Z1000,23,False)),"",VLOOKUP(A1,Sheet2!B1:Z1000,23,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

Top