V LOOK UP AND IF STATEMENT

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

Guest

I want to use a vlookup and if statement to return a value of Y if found and
N if not found i.e. look up the value in column a in another spreadsheet and
put N if not found and Y if found
 
One alternative is something like this in say, C1::
=IF(ISNUMBER(MATCH(A1,B:B,0)),"Y","N")
 
=IF(ISNA(VLOOKUP(...)),"N","Y")

The ISNA() function tests if the expression returns #N/A, which is what
VLOOKUP returns when it does not find what it looks up.

HTH
Kostis Vezerides
 
Back
Top