Matching records

rireland

Board Regular
Joined
Feb 12, 2004
Messages
64
I have many records from a card entry system with times & card number. I have another file with the name & card number. I want to combine the two so I have times & name. For example:
1234 12:43
2345 13:34
4567 14:56
1234 15:45

the other file has:

1234 John Smith
2345 Jill Jones
4567 Fred White

I want end up with:

1234 12:43 John Smith
2345 13:34 Jill Jones
4567 14:56 Fred White
1234 15:45 John Smith


Any advice - preferably not VBA - I'm a a novice & find excel formulas easier than VBA
 

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"
Sure, you want a vlookup for that.

In the below I assumed that the staff id was in col A, the time in col B and you wanted the name in col C

(i didn't have the names and id's in another file i put them in col G and H, but you could)

Put this into Col C row 2
=VLOOKUP(A2,$G$2:$H$4,2)
 
Upvote 0
Thanks for fast reply. If the times are in a file called "times" and the names are in file called
"names" and I wanted the merged data into a file called "results", what would be the formula I would put into the results file.

Thanks

Richard
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,706
Members
452,939
Latest member
WCrawford

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