+ Reply to Thread
Results 1 to 4 of 4

Merging two worksheets and flagging matching names

  1. #1
    Registered User
    Join Date
    06-13-2011
    Location
    Concord, NH USA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Merging two worksheets and flagging matching names

    I would like to take a large database of about 20,000 records, containing the names and many other types of information, and merge them with another worksheet, containing around 1000 names. (Those are just order of magnitude numbers).

    In the real data, I want to identify names in the second worksheet that are also on the first worksheet. These represent "on premises" individuals. In my attached example, I use players from various Sports, and I want to match the names of the players on the second sheet that are also on the first sheet. These reporesent "the home team", which is analogous to matching the "on premises" names in my actual project.

    I am not very astute at using things like vlookup, index, and match - or other functions, for that matter.

    What I would like to do, when there is a match, is populate the "Home Team" field with the word Yes whenever there is a match. In my real world project, I will want to populate approximately 1000 columns with Yes when I find a matching on premises user.

    Would someone be kind enough to provide me with the function or functions needed to match names in the two worksheets, and place Yes in the matchng fields, and provide a solution that will scale to thousands of entries? I'd sure appreciate it. Once I understand how to do this properly, I should be able to apply it to a variety of real world scenarios that I expect to be working on in the near future.

    I sincerely thank you for your help - and would also appreciate an explanation of the solution so that I can then go back to the documentation and apply the techniques.
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Merging two worksheets and flagging matching names

    Hello & Welcome to the Board,

    Try this in C2 and copy down

    =IF(ISNUMBER(MATCH(A2,'Home Team Players'!$A$2:$A$10,0)),"Yes","No")

    Basically the match function is going to look for a match and if matched will return the ordinal position in the list.

    The Isnumber function will check to see if a number is returned and if so then a Yes is returned or else a No.

    In E2 place this formula and see what is happening.

    =MATCH(A2,'Home Team Players'!$A$2:$A$10,0)
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    06-13-2011
    Location
    Concord, NH USA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Merging two worksheets and flagging matching names

    Beautiful! First question, first answer, both worked like a champ! When I ran it on my test data, it worked great.

    Copying the formula into the database, which is over 18,000 records long at the present time, did not work as smoothly as I would have liked because some of the values of my "OnPrem Acct" (the 'home team' in my example), were already populated, so a quick "Go to last entry" did not work out, and I had to sit there for a couple of minutes scrolling to the bottom.

    I also appreciated your explanation.

    In an exercise that is coming up soon, I will have to merge account records of a master database. The "Master Database" is essentially a site customized LDAP type of file with directory information about ndividuals with Email accounts. The master spreadsheet I am dealing with contains additional information about some activities involving both calendar and Email migrations - either that have already taken place or are being scheduled to take place.

    When the project is complete, we should see every single row either marked as complete or as to be removed from the system.

    I am expecting, if I do this right, that I ought to be able to do all kinds of reports off of the master spreadsheet - what's done, what's not done, what percentage of accounts have been migrated, what is the rate of migration, what percentage need to be completed, who is scheduled this week, and so forth.

    I am sure I will have more questions, but hopefully your great example and explanation will result in fewer questions on my end.

    Thanks again, it worked great.

  4. #4
    Registered User
    Join Date
    06-13-2011
    Location
    Concord, NH USA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Merging two worksheets and setting a migration date

    Once again, I appreciate the help that I've already been given by Jeff; hopefully I can get fairly quick turnaround on this one; I am thankful for what's already been shared, and I'll be thankful for helpful tips once again. ---Brian
    Last edited by bmas56; 06-14-2011 at 05:08 PM.
    Brian

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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