Excel 2007: Vlookup - Results without #N/A

  • Thread starter Thread starter ocean mist
  • Start date Start date
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?
 
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))
 
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))
 
Back
Top