+ Reply to Thread
Results 1 to 5 of 5

Merge first columns of a table, keeping structure of additional columns

  1. #1
    Registered User
    Join Date
    03-01-2019
    Location
    United States
    MS-Off Ver
    365
    Posts
    2

    Question Merge first columns of a table, keeping structure of additional columns

    I apologize as this information is probably available on the forum somewhere, but I wasn't even sure what terminology to use.

    I need to combine the first column of several tables, where some information is unique, and some is repeated. However, I need to keep the structure of additional the columns, or at least the adjacent ones, in the new table.

    The image below hopefully explains it better.

    Excel_Columns.png

    This has come up a few times and I'm completely stumped how to do this kind of merge.

  2. #2
    Forum Contributor
    Join Date
    09-19-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    208

    Re: Merge first columns of a table, keeping structure of additional columns

    If you can get your source data into three columns, e.g. Table#, Month, Value, you could then create a Pivot Table in seconds to show you the data as shown.

    2019-03-01_14-37-47.jpg

    2019-03-01_14-39-54.jpg

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Merge first columns of a table, keeping structure of additional columns

    I can reproduce your required results but I'm not sure this is quite what you are looking for.

    All I have here is 3 simple vlookup formulas, one per table. For example referencing the attached workbook in E6 and copied down:
    =IFERROR(VLOOKUP(D6, $A$2:$B$4, 2, FALSE), "")

    The formulas in F6 and G6 are similar.

    The attached workbook implements the above.

    Anywhere close?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-01-2019
    Location
    United States
    MS-Off Ver
    365
    Posts
    2

    Re: Merge first columns of a table, keeping structure of additional columns

    This is my first time using this forum and I want to say a huge thank you to this community. I did not expect responses so quickly!

    Thanks to the first poster for your solution. It worked great for my posted example, but the actual workbook has thousands of entries scattered across about a dozen worksheets.

    GeoffW283, your formula was perfect for what I needed.

    What I ended up doing was combining the first columns of every worksheet using the VBA script I found at extendoffice.com

    I'd post a link but I do not have permission yet.


    From there I was able to create a primary column of only unique entries using the remove duplicates feature.

    Once I had this, GeoffW283's formula did exactly what I needed- once I looked up how vlookup worked!

    Thanks again to both posters for responding. You've been a huge help!

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Merge first columns of a table, keeping structure of additional columns

    Glad we could help. Thanks as well for the feedback and reputation points

+ 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. [SOLVED] automatically extend columns while keeping a minimum width on specific columns
    By enhydra in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2017, 10:13 PM
  2. Additional Columns in a connected table
    By cjwatts in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-23-2017, 09:42 AM
  3. [SOLVED] Sort table while keeping multiple columns intact
    By Lucelline in forum Excel General
    Replies: 3
    Last Post: 05-03-2016, 03:49 AM
  4. Sort two columns (names) with keeping data intregity and order within the columns
    By ikindaknow in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-15-2015, 10:01 AM
  5. Replies: 0
    Last Post: 12-12-2013, 08:29 PM
  6. Pivot Table adding additional columns excel 2007
    By runner in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-28-2012, 12:24 PM
  7. [SOLVED] Merge duplicate rows and merge the columns (approx 10 columns)
    By adfeddon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2012, 11:19 AM

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