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
 

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