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 find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
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"
 
Upvote 0

Forum statistics

Threads
1,214,874
Messages
6,122,034
Members
449,061
Latest member
TheRealJoaquin

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
Back
Top