compare one column to another and copy as needed

inosent

Board Regular
Joined
Mar 19, 2007
Messages
131
hi

i have a file with 131000 records, and in one of the columns is an item number that is often duplicated etc

then i have another column of item numbers that does not duplicate (much smaller, 45 to be exact)


what i want is a formula that looks at the column with the item number in the big list and sees if it is in the short list, and if so copy to an adjoining cell the item name


ex

col 1 col2 (item name)
1 hammer
2 nails
3 wire
4 insulation
5 glue
6 windows
7 outlets
8 drywall


col 3
1
2
3
3
3
3
5
6
7
7
8
8
8

so as i compare col 3 to col 1, if there is a match, i want col 4 to say what the item name is in col 2

ex

col 3 col 4
1 hammer
2 nails
3 wire
3 wire
3 wire
3 wire
5 glue
6 windows
7 outlets
7 outlets
8 drywall
8 drywall
8 drywall


i completely forgot the formula for this action. any help is appreciated. thanks
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
HI
you have two options VLOOKUP and LOOKUP
because your original data in ascending order you can use LOOKUP
Excel Workbook
ABCDE
1VlookUPLookup
21hammer1hammerhammer
32nails2nailsnails
43wire3wirewire
54insulation3wirewire
65glue3wirewire
76windows3wirewire
87outlets5glueglue
98drywall6windowswindows
107outletsoutlets
117outletsoutlets
128drywalldrywall
138drywalldrywall
148drywalldrywall
Sheet1
Excel 2010
Cell Formulas
RangeFormula
D2=VLOOKUP(C2,$A$2:$B$9,2,0)
E2=LOOKUP(C2,$A$2:$A$9,$B$2:$B$9)
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,484
Members
452,917
Latest member
MrsMSalt

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