+ Reply to Thread
Results 1 to 7 of 7

Consolidating 2 tables into one table

  1. #1
    Registered User
    Join Date
    04-12-2013
    Location
    Delaware
    MS-Off Ver
    Excel 2010
    Posts
    3

    Consolidating 2 tables into one table

    I have 2 tables

    Table 1

    Column A, Column B

    Table 2

    Column B, Column C

    How can I get a table to display the following in one row.

    Column A, Column B, Column C (Where Column B is the same value for both tables - KEY). The order doesn't matter eg, it could be column B, A, C

    I've tried pivot tables, but the data isn't displayed across in a row. Tried merging and consolidating, but I must be missing a step.

    Can someone step me thru the process? All the values are TEXT values but sometimes Column B does not have any values (blanks) for some of the rows of data.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Consolidating 2 tables into one table

    Hi technurse,

    welcome to the forum.

    Can you post a sample workbook along with your expected output. Thanks.


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    04-12-2013
    Location
    Delaware
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Consolidating 2 tables into one table

    Actually, figured it out. Was simple, just had to use a vlookup formula.

    Thanks.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Consolidating 2 tables into one table

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Consolidating 2 tables into one table

    Hi technurse,

    Apart from suggestions given by FDibbins, also share the vlookup formula as chances are there that this would help a user who lands up here via internet search


    Regards,
    DILIPandey
    <click on below * if this helps>

  6. #6
    Registered User
    Join Date
    04-12-2013
    Location
    Delaware
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Consolidating 2 tables into one table

    Here's the vlookup used: =VLOOKUP(A451,Worksheet B!$1:$1048576,3,FALSE) Where A451 is the cell value to compare in WORKSHEETA(Table 1), WORKSHEETB!$1:$1048576 is the range on Worksheet B(TABLE 2) to compare, 3 is the column location on Worksheet B (Table 2) who's data value I pulled to Worksheet A (Table 1).

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Consolidating 2 tables into one table

    Great..!!

    Technurse, Thanks for sharing the solution


    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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