Computer Talk Discussions here pertain to mods, troubleshooting, and PC/console gaming

Hye Excel experts...

Old Jun 10, 2005 | 07:43 AM
  #1  
jacksonpt's Avatar
Thread Starter
Senior Member
 
Joined: May 2002
Posts: 2,752
Likes: 0
From: Binghamton, NY
Hye Excel experts...

Anyone know how to compare 2 lists in excel? I've got a list of names and social security numbers in one list, and another list with social security numbers and e-mail addresses. The first list is a subset of the second (i.e. the second list is everyone we have on file, the first list is only those people who meet certain criteria). I need to bump the first list against the second list so I can get the e-mail addresses for the people on the first list.

Make sense? Anyone know how to do this?
Reply
Old Jun 10, 2005 | 11:58 AM
  #2  
Bob_98SR5's Avatar
Registered User
 
Joined: May 2002
Posts: 10,036
Likes: 5
From: Los Angeles
jackson,

how many records are we talking about here? less than 100? more than 1000? 5000?

If its not a huge list, the easiest thing to do is to do a "sort" by the ssi # since that is the only common set of data. export the data into a new spreadsheet and place the data in columns like so:

Col1 Col2 Col3 Col4
names SSI SSI Email

Then sort the data. Surround both Cols 1 and 2 and then:
Data > Sort > and then select Col 2. Ascending is a good choice

Do the same for Cols 3 and 4. Then visually compare the list

If its a list of a couple thousand, I'll think a little to see what is the best way. If your looking for soemthing completely automated that will match records and then assemple the emails, names and SSI, that will be more difficult

bob

Last edited by Bob_98SR5; Jun 10, 2005 at 11:59 AM.
Reply
Old Jun 10, 2005 | 02:26 PM
  #3  
tulsa_97SR5's Avatar
Contributing Member
 
Joined: Feb 2004
Posts: 1,318
Likes: 0
From: tulsa, OK
the vlookup function will do it. highlight the second set of data & name that range something, like 'data'.
in the first empty column on the first sheet use vlookup, formula should be something like
=vlookup(a2, data, 2, false)
where a2 is the cell with the ssn you want to find a match for, data is the name of the second block of data, 2 is the column in data that has email addresses, and false tells it to only return exact matches.

edit: the named range needs to have the ssn in the leftmost column of the named range. PM me if this doesn't make sense.

It's my favorite excel function :-)

Last edited by tulsa_97SR5; Jun 10, 2005 at 02:27 PM.
Reply
Old Jun 13, 2005 | 05:21 AM
  #4  
jacksonpt's Avatar
Thread Starter
Senior Member
 
Joined: May 2002
Posts: 2,752
Likes: 0
From: Binghamton, NY
Thanks for the tips guys... I ended up doing it in access using a query. There were about 1500 records - no way was I going to do that manually.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
kawazx636
The Classifieds GraveYard
34
Oct 6, 2021 03:03 PM
HiLuxer
Axles - Suspensions - Tires - Wheels
4
Jan 6, 2016 11:34 AM
Kamaloha
86-95 Trucks & 4Runners
1
Oct 16, 2015 05:13 PM
sonorn67
84-85 Trucks & 4Runners
3
Sep 19, 2015 05:39 PM


Thread Tools
Search this Thread

All times are GMT -8. The time now is 11:23 AM.