Help identifying whether Sheet1!A* = Sheet2!A* and then populating with Sheet2!C*

garyarubin

New Member
Joined
Oct 3, 2023
Messages
5
Office Version
  1. 365
Platform
  1. MacOS
I have ~50,000 usernames in Column A on Sheet1. Many of those usernames repeat. On Sheet2, I have the same usernames in Column A, followed by their employee IDs in Column B. But on Sheet2, there are no repeats. I want to copy over the IDs from Sheet2 into the corresponding place in Sheet1. Essentially, I want to to say: if any cell on Sheet1!Column A = any cell on Sheet2!Column A, then copy the Sheet2!Column C value from the same row into that same row in Sheet1!Column C. Thanks!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
You probably just need a simple Vlookup(). Your description is a bit confusing, firstly you say you want the employee IDs from column B, but then you say you want the value brought from column C :unsure: Anyhow, see if this gives you a clue:
Book1
AB
1UserIDEmp ID
2user 1146
3user 2305
4user 3330
5user 4689
6user 5111
7user 6158
8user 7405
9user 8894
10user 9407
11user 10275
12user 1146
13user 2305
14user 3330
15user 4689
16user 5111
17user 6158
18user 7405
19user 8894
20user 9407
21user 10275
Sheet1
Cell Formulas
RangeFormula
B2:B21B2=VLOOKUP(A2,Sheet2!A:B,2,FALSE)


Book1
AB
1UserIDEmp ID
2user 1146
3user 2305
4user 3330
5user 4689
6user 5111
7user 6158
8user 7405
9user 8894
10user 9407
11user 10275
12
Sheet2
 
Upvote 0
Solution

Forum statistics

Threads
1,215,076
Messages
6,122,983
Members
449,092
Latest member
Mr Hughes

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