Return a "yes" or "no" in vlookup

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

Guest

Please, what is the proper vlookup syntax to get a yes or no answer in a
vlookup formula, instead of a column return? thanks.
 
Try this:

=IF(ISNA(VLOOKUP(A1,table,1,0)),"no","yes")

where A1 is the cell with the lookup value, and table is a named range
covering your data.

Hope this helps.

Pete
 
If you're checking to see if a value is in a single column/row list:

=if(isnumber(match(a1,sheet2!a:a,0)),"yes - a match","no match")
 
Thanks Pete

Pete_UK said:
Try this:

=IF(ISNA(VLOOKUP(A1,table,1,0)),"no","yes")

where A1 is the cell with the lookup value, and table is a named range
covering your data.

Hope this helps.

Pete
 
Thanks Dave.

Dave Peterson said:
If you're checking to see if a value is in a single column/row list:

=if(isnumber(match(a1,sheet2!a:a,0)),"yes - a match","no match")
 
Back
Top