Lookup Match From List

Helen842000

New Member
Joined
Mar 28, 2011
Messages
34
Hello all!

I am working on two worksheets and need to cross reference them. I would appreciate any help.

On worksheet one I have a long list of data with many duplicates and an empty column for category number. They're in a specific order. The names run from A3 to A371. The category number column is currently blank and I would like it to be filled via lookup.

-------A-------------B----------
----NAME--------CAT NUM----
-----
BOB----------------------
-----ALICE--------------------
-----
BOB----------------------
----EMMA--------------------
----ALICE--------------------

On the second worksheet I have unique entries (1 per name) and their associated unique category number

-------A-------------B----------
----
NAME--------CAT NUM----
-----BOB-----------5050------
-----ALICE---------5051------
-----EMMA---------5051------


The unique names run from A2:A237 and the category numbers run from B2:B237

Is there a simple way I can look up the category number and output it into the B column on the first worksheet?

I'd really appreciate any advice, even a pointer as to what function I should be considering would be very useful.

Thank you!
 
Last edited:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Try this formula by pasting it into your sheet 1 column B values. In the formula you will see that I referenced sheet 2, change the name to be the sheet your unique data is.
=VLOOKUP(A3, Sheet2!A:B, 2, FALSE)

Hope this helps.
 
Upvote 0
Hello Woznymj11, thank you for your reply!

I've pasted the VLOOKUP formula into my column B on sheet1 however I get #N/A. My sheets are called Sheet1 and Sheet2 so that is correct.

I'm not sure if I need to specify the range for the VLOOKUP, any suggestions would be great!

Thanks again!
 
Upvote 0
Ah-ha! I deleted the Sheet2! and range out and then put it in again by physically selecting the array and changed FALSE to TRUE (approx match is ok as they're all very different names) it worked straight away!

Awesome, I'm really pleased! You saved me a LOT of work there, thank you!

Have a great weekend!
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,561
Members
449,089
Latest member
Motoracer88

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