compare to list --like a Vlookup?

poker

Board Regular
Joined
Oct 2, 2005
Messages
74
worksheet data entry column J which is a dynamic length there are numbers that identify product code. On worksheet called info in column cg2:cg41 is a set range of numbers. on worksheet called data i would like to look in column J2 and see if it matchs a value on sheet info cg2:cg41, if yes fill in cell with "Vapor" I gave the range cg2:cg41 a name called vapor_list
=VLOOKUP(J2,VAPOR_LIST,1,FALSE)
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
worksheet data entry column J which is a dynamic length there are numbers that identify product code. On worksheet called info in column cg2:cg41 is a set range of numbers. on worksheet called data i would like to look in column J2 and see if it matchs a value on sheet info cg2:cg41, if yes fill in cell with "Vapor" I gave the range cg2:cg41 a name called vapor_list
=VLOOKUP(J2,VAPOR_LIST,1,FALSE)

=IF(ISNUMBER(MATCH(J2,VAPOR_LIST,0)),"Vapor","Not Found")

or

=ISNUMBER(MATCH(J2,VAPOR_LIST,0))+0

Custom format the formula cell as:

[=0]"Not Found";[=1]"Vapor"
 

Forum statistics

Threads
1,137,200
Messages
5,680,125
Members
419,884
Latest member
james888sa

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