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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
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,171,685
Messages
5,876,889
Members
433,217
Latest member
Muhammad Tanzeel Ur Rehma

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