+ Reply to Thread
Results 1 to 9 of 9

Combine two data sets and merge them into one table

  1. #1
    Registered User
    Join Date
    02-11-2015
    Location
    Amsterdam
    MS-Off Ver
    office 2007
    Posts
    39

    Combine two data sets and merge them into one table

    Hi,

    I post this problem here, but no luck yet.

    I have two different data sets but they have this shared ID which is the employee name.
    I want to combine these two data sets and listing them by name in a table.

    In the attachment I tried to portray my problem with the solution (combined table) I am looking for.

    I tried the consolidate function, but i guess that this is not the solution. I guess I should use a advanced version of Vlookup function

    Any suggestion is welcome
    Attached Files Attached Files

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Combine two data sets and merge them into one table

    Try this:

    Please Login or Register  to view this content.
    Last edited by xladept; 03-31-2015 at 05:58 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    02-11-2015
    Location
    Amsterdam
    MS-Off Ver
    office 2007
    Posts
    39

    Re: Combine two data sets and merge them into one table

    Thanks xladept,

    It's a great starting point. May be it's my fault for not being clear enough. Your solution does not correctly use the second data set.
    For example Alex has one instances in data set 1 and three instances data set 2. Currently your solution uses only the first entry of data set 2.

    For Alex should the result in Combined table be like this:
    combined_table.png
    The Combined table will be used eventually for running reporting per person.
    Attached Files Attached Files

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Combine two data sets and merge them into one table

    Hi Oddy,

    I'm mulling it over - every other name had one for one?

    Thanks for the rep!

  5. #5
    Registered User
    Join Date
    02-11-2015
    Location
    Amsterdam
    MS-Off Ver
    office 2007
    Posts
    39

    Re: Combine two data sets and merge them into one table

    I don't understand what your question is. Perhaps the following picture will clear things up.
    The final table can also be like this:

    CombinedTable.jpg

    Hopefully this will clear things up.
    (you can also put empty rows after each name)

    Thanks in advance!

    I made a mistake in my previous post, sorry
    Last edited by oddy73; 04-01-2015 at 04:26 PM. Reason: picture is not visible

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Combine two data sets and merge them into one table

    Hey Oddy,

    Are you telling me the whole story? Is your last sample the final one or can you post a more representative sample??

  7. #7
    Registered User
    Join Date
    02-11-2015
    Location
    Amsterdam
    MS-Off Ver
    office 2007
    Posts
    39

    Re: Combine two data sets and merge them into one table

    Hi Xladept,

    Yes I am telling you the whole story. With the help of someone else, we managed to get the result. It needs some testing but this is what I was asking:
    Please Login or Register  to view this content.

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Combine two data sets and merge them into one table

    Well done

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Combine two data sets and merge them into one table

    Try this:

    Please Login or Register  to view this content.

+ 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. Combine to sets of data
    By rlsmith789 in forum Excel General
    Replies: 2
    Last Post: 07-08-2014, 07:43 PM
  2. [SOLVED] Merge two data sets A & B into one
    By plumberef in forum Excel General
    Replies: 4
    Last Post: 10-25-2012, 11:04 PM
  3. [SOLVED] How to Combine two sets of data in excel
    By Jchhoule in forum Excel General
    Replies: 3
    Last Post: 05-10-2012, 02:47 PM
  4. Combine two sets of data
    By FrankCastle in forum Excel General
    Replies: 4
    Last Post: 08-15-2011, 06:31 PM
  5. merge two data sets one unique
    By CESTOTT in forum Excel General
    Replies: 2
    Last Post: 01-25-2006, 11:50 AM

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