+ Reply to Thread
Results 1 to 9 of 9

Matching email addys to same names on different lists

  1. #1
    Registered User
    Join Date
    02-01-2014
    Location
    Boston
    MS-Off Ver
    2007,2010,2013
    Posts
    3

    Matching email addys to same names on different lists

    Hello - Someone posted exactly what I'm trying to do, and then someone posted a response, on this site but I'm having a problem and hope someone can help me out. I posted the original question and answer below.

    I have two sheets - sheet one with 7908 and sheet two with 14388 rows. When I use the formula, below, and adjust the row numbers accordingly to 14388, I get different results every time I run it. Sometimes it will match some - and those are always towards the bottom of the sheet - and sometimes it matches none. And everytime I run it it misses many.

    Any ideas on how that could happen? I'm not changing anything - the same exact formula (cut and pasted) in the same place in the same file yet always different results and it never gives complete results.

    Thanks for any help!!!
    Rob

    Here is the original question and answer…..

    Question:
    I have a customer list of around 6000 names and addresses. I have a separate list of names with email addresses. Is there a way for me to do some sort of lookup function to get the email addresses pulled from the one list and put to the corresponding names on the other list. I need it to check for both first and last names due to the fact that I have a lot of duplicate last names. Thanks in advance for any help on this.

    Answer:
    So assuming the first and last names are separate columns, then something like:

    =INDEX(Sheet2!$C$2:$C$6000,MATCH(1,INDEX((Sheet2!$A$2:$A$6000=A2)*(Sheet2!$B$2:$B$6000=B2),0),0))

    copied down

    where Sheet2!A2:C6000 is the lookup table and you are maching up A2 and B2 of active sheet to columns A and B of Sheet 2 to get column C addresses.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,419

    Re: Matching email addys to same names on different lists

    Although it doesn't say it, that is an array formula and must be committed with Ctrl-Shift-Enter rather than just Enter. Then drag down.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-01-2014
    Location
    Boston
    MS-Off Ver
    2007,2010,2013
    Posts
    3

    Re: Matching email addys to same names on different lists

    Hello TMS,
    Thanks for the quick response!
    Unfortunately, that didn't have any impact - still getting no results, or incorrect results. No matches ever appear above row 6500 or so - even though there are many matches there.
    Also, in Excel 2013, I just noticed there are characters, within the formula, that are showing up in different colors - red, green, pink….most notably the "A2" and "B2" that appear right after "14388=".

    Thanks!
    Rob

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,419

    Re: Matching email addys to same names on different lists

    The colours indicate which cells are being used in the formula.

    Suggest you upload a sample of your data and also a sample of the workbook from the original question (and maybe a link to the original question)

    Regards, TMS

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Matching email addys to same names on different lists

    Quote Originally Posted by trident50 View Post

    =INDEX(Sheet2!$C$2:$C$6000,MATCH(1,INDEX((Sheet2!$A$2:$A$6000=A2)*(Sheet2!$B$2:$B$6000=B2),0),0))
    Quote Originally Posted by TMShucks View Post
    Although it doesn't say it, that is an array formula and must be committed with Ctrl-Shift-Enter rather than just Enter. Then drag down.
    That formula can be normally entered.

    The inner INDEX function processes an array without needing to array enter.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    02-01-2014
    Location
    Boston
    MS-Off Ver
    2007,2010,2013
    Posts
    3

    Re: Matching email addys to same names on different lists

    Hey Everyone,
    You're going to kill me! lol

    There was a leading space in the first 2/3's of the sheet. I finally noticed it that, where the matches started, was actually where I pasted info from another sheet - then it was just a question of finding out what the difference between them was.

    I still don't understand how that could impact the results being "different" on multiple occasions.

    But, since I removed the leading spaces, the results have been static. So it looks like I'm all set.

    Thanks for your and your patience!

    Rob

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Matching email addys to same names on different lists

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,419

    Re: Matching email addys to same names on different lists

    @Tony: thank you, I stand corrected. Looked a lot like an array formula

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Matching email addys to same names on different lists

    __________

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Need help matching up two lists of email addresses
    By danwardle77 in forum Excel General
    Replies: 3
    Last Post: 01-29-2013, 03:34 PM
  2. need to copy names by matching email address from 2 lists
    By apparker in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-11-2013, 08:59 PM
  3. Matching email addresses to Names and Last Names
    By ffrriieennddzz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-12-2012, 01:17 PM
  4. Matching email addys with names on different lists
    By BrianSells in forum Excel General
    Replies: 4
    Last Post: 07-16-2011, 02:36 PM
  5. Email addys to Outlook?
    By Clueless1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-24-2008, 06:00 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1