Search the Lookup table and return result formula

Brew

Well-known Member
Joined
Sep 29, 2003
Messages
1,569
How do I create a formula that checks to see if the value in H4 equal any value in the vlookup table m4:m48, if so, then Y, if not then N. I tried the following formula but it gives me N result for both conditions.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

xl_psychic

Active Member
Joined
Jan 4, 2004
Messages
359
dK:

Try this and let me know if it works..

=IF(ISERROR(VLOOKUP(H4,$M$4:$M$8,1,FALSE)),"N","Y")

Hope this helps..
 

wigi

Well-known Member
Joined
Jul 10, 2006
Messages
7,958
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
Hi

consider

=IF(COUNTIF($M$4:$M$8,H4),"Y","N")

Wigi
 

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
50,661
Office Version
  1. 365
Platform
  1. Windows
.. or this possibly?
=IF(ISNUMBER(MATCH(H4,M4:M48,0)),"Y","N")
 

Brew

Well-known Member
Joined
Sep 29, 2003
Messages
1,569
Thanks everyone for your assistance on this. Wigi, i went with your solution.
 

Forum statistics

Threads
1,141,718
Messages
5,708,072
Members
421,544
Latest member
Keanna

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top