pull data from one sheet to another by match

eric.l.bohon

Board Regular
Joined
May 8, 2006
Messages
149
ALCON,

What I am trying to do is easy but do not know exactly what the code is.

What i want to do is pull data from one sheet to another by matching one column with another column. here is the example:

sheet one

cell one: name

sheet two

cell one: name
cell two: ssn

So I want to pull ssn in on sheet two onto sheet one

any help on this.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Maybe something like this : ?

the table in on sheet 2

Excel Workbook
AB
1NamesSSN
2Name-1123-13-1234
3Name-2123-13-1235
4Name-3123-13-1236
5Name-4123-13-1237
6Name-5123-13-1238
7Name-6123-13-1239
Sheet2





Excel Workbook
AB
1NamesExtracted
2Name-1123-13-1234
3Name-2123-13-1235
4Name-3123-13-1236
5Name-4123-13-1237
Sheet1
 
Last edited:
Upvote 0
needed correction:

=INDEX(Sheet2!$B$2:$B$7,MATCH(Sheet1!A2,Sheet2!$A$2:$A$7))
the above formula should be :

=INDEX(Sheet2!$B$2:$B$7,MATCH(Sheet1!A2,Sheet2!$A$2:$A$7,0))
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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