+ Reply to Thread
Results 1 to 2 of 2

Merge Matching Records

Hybrid View

  1. #1
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Merge Matching Records

    Hi all,

    I would really appreciate your input, direction and help, and I thank you in advance.

    What I would like to do
    I would like to merge/add the data of multiple sheets of matching records to that matching row. I.e. if an ID number in sheet B matches an ID number in sheet A, the data/content of that matching row must be copied and placed after the last column.

    Example: Also see attached images - Sheet A + Sheet B = Result

    Sheet A

    ID Number Name Surname
    123 Dan White

    Sheet B

    ID Number Address1 Address2
    123 Brooklyn NY

    Result of merge

    ID Number Name Surname Address1 Address2
    123 Dan White Brooklyn NY

    Thanks!
    Attached Images Attached Images

  2. #2
    Valued Forum Contributor tony h's Avatar
    Join Date
    03-14-2005
    Location
    England: London and Lincolnshire
    Posts
    1,187

    Re: Merge Matching Records

    There are lots of ways to do this but here I suspect VLOOKUP is your friend.
    on the first sheet in cell c2 put
    Formula: copy to clipboard
    =vlookup(a2,Sheet2!$A$1:$K$22,2 false) 


    size the $A$1:$K$22 to the number of rows

    and then copy the formula down and do this for rge rest of the columns and rows.

    If you are getting errors because there is no match you can test the result

    Formula: copy to clipboard
    =if(isna(vlookup(a2,Sheet2!$A$1:$K$22,2 false)),"",vlookup(a2,Sheet2!$A$1:$K$22,2 false) 


    click on the * Add Reputation if this was useful or entertaining.

+ 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. Merge two sheets into one matching dependents to employee records
    By nabberooski in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 12-06-2012, 06:04 PM
  2. [SOLVED] Merge same Records to One Row
    By seenai in forum Excel General
    Replies: 14
    Last Post: 10-29-2012, 07:57 AM
  3. Email Merge with variable merge records break by client level
    By sss047 in forum Word Formatting & General
    Replies: 0
    Last Post: 04-15-2011, 04:25 AM
  4. how to look up matching records
    By red95 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-30-2009, 10:25 PM
  5. Matching records
    By RayB in forum Excel General
    Replies: 1
    Last Post: 07-18-2006, 12:35 PM

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