#N/A Error on VLOOKUP

  • Thread starter Thread starter roxiemayfield
  • Start date Start date
R

roxiemayfield

I have this formula:

=VLOOKUP(A20,EmpInfo,2)

If A20 is Blank, I want the cell blank - instead I am getting #N/A

What am I doing wrong?
 
=IF(ISNA(VLOOKUP(A20,EmpInfo,2)),"",VLOOKUP(A20,EmpInfo,2))

or probably

=IF(ISNA(VLOOKUP(A20,EmpInfo,2,0)),"",VLOOKUP(A20,EmpInfo,2,0))


--


Regards,


Peo Sjoblom
 
This one is giving me FALSE unless the cell is blank, then I am still getting
#N/A
 
Try it this way:

=IF(A20="","",VLOOKUP(A20,EmpInfo,2))

then copy down if required. Ensure that A20 and other cells below it
are blank, and not containing spaces.

Hope this helps.

Pete
 
Thank you! I think that will work.

Pete_UK said:
Try it this way:

=IF(A20="","",VLOOKUP(A20,EmpInfo,2))

then copy down if required. Ensure that A20 and other cells below it
are blank, and not containing spaces.

Hope this helps.

Pete
 
Back
Top