+ Reply to Thread
Results 1 to 15 of 15

Combine tables with Different Labels in Column

  1. #1
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50

    Combine tables with Different Labels in Column

    I have a table with a list of countries in a column with data corresponding to a dollar value by year.

    5 other columns have Countries with data corresponding to a number (that is a count of # of correspondence issued).

    However, the country names on the first table do not exactly match the country names on the 5 other columns.

    I want to combine the tables into 1 table (if that is the best option) that compares the correspondence issued to the dollar value by year.

    I would also be interested in visualization suggestions if possible.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Combine tables with Different Labels in Column

    So do you want 5 new columns from column G onwards, or to have a new column next to each of the ones you have now for 2014, 2015 etc.?

    Pete

  3. #3
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50

    Re: Combine tables with Different Labels in Column

    I think I want a new column next to the one's I have now.

    So like Country - 2014Value - 2014#Correspondence - 2015Value -2015#Correspondence etc...

    If possible, hopefully one get's the idea. Open for different ways one would think is better.

    Thanks!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Combine tables with Different Labels in Column

    Okay, well you can insert new columns in your main table at column C, E, G, I and K, and then put appropriate titles in row 1 - the other tables will get shifted to the right.

    Then you can use this formula in C2:

    =IFERROR(VLOOKUP($A2,M:N,2,0),"-")

    This should be copied down automatically, and will identify non-matched countries by means of the hyphen. You are bound to get some missing countries, as your first table is longer than any of the others.

    Similar formula can be used in the following cells:

    E2: =IFERROR(VLOOKUP($A2,P:Q,2,0),"-")
    G2: =IFERROR(VLOOKUP($A2,S:T,2,0),"-")
    I2: =IFERROR(VLOOKUP($A2,V:W,2,0),"-")
    K2: =IFERROR(VLOOKUP($A2,Y:Z,2,0),"-")

    You can then improve the display by modifying the name in column A where there is no match. For example, there is no match for row 6 (Vietnam), but simple inspection shows that is because you have Viet Nam in your other tables (i.e. with a space in the middle) - insert a space in A6 and you will have values populated. In A10 you have New Zealand with "(!)" following it - remove this and again the data will populate.

    In short, improve the quality of your data in column A.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50

    Re: Combine tables with Different Labels in Column

    Thanks very helpful so far!

    We don't issue correspondence for every county that has a $ Value.

    Is there a way to calculate and compare the total for just those that we do issue and then an overall value vs issued correspondence?
    Attached Files Attached Files
    Last edited by kellyjo7; 07-15-2019 at 11:56 AM.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Combine tables with Different Labels in Column

    It would be easier if you arranged to have 5 contiguous columns for the $ values followed by 5 columns for the correspondence, then you could just have a SUMIFS / SUM (or even AVERAGEIFS).

    Do you want me to set it up for you like this (after I have eaten) ?

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50

    Re: Combine tables with Different Labels in Column

    Ok, makes sense, yes whatever time frame works best for you. Thanks so much for your help!

  8. #8
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50

    Re: Combine tables with Different Labels in Column

    I can't seem to get the 5 contiguous, are you still willing to help me up?

    Really appreciate your time

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Combine tables with Different Labels in Column

    I've changed the layout for you, as suggested, and put this formula in cell L2:

    =IFERROR(SUMIFS(B2:F2,G2:K2,"<>-") / SUM(G2:K2),"")

    Does that do what you were asking for?

    Hope this helps.

    Pete
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50
    Quote Originally Posted by Pete_UK View Post
    I've changed the layout for you, as suggested, and put this formula in cell L2:

    =IFERROR(SUMIFS(B2:F2,G2:K2,"<>-") / SUM(G2:K2),"")

    Does that do what you were asking for?

    Hope this helps.

    Pete
    You’re awesome! Appreciate your time.

    I was looking to do what you’ve done but also individual years.

    So like x # correspondents per $ amount by country and total.

    And 1 that includes every country and 1 that includes just the countries we issue correspondence

    So like for 2018 1000 correspondence and $1000 dollars Mexico 0 correspondence $1000

    TOTAL 1000 correspondence $2000

    Then another where we don’t include Mexico because we don’t issue correspondence so it would just be China’s numbers (and whatever other countries we issue correspondence)

  11. #11
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Combine tables with Different Labels in Column

    I'm sorry, I don't really follow what it is that you are trying to achieve. Can you mock something up and I'll take a look at it tomorrow, as it is getting a bit late here.

    Pete

  12. #12
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50

    Re: Combine tables with Different Labels in Column

    I think I mostly have what I need.

    Mainly looking for an easy way to split out analysis for both ALL countries and then only countries we issue correspondence for. Any other ways I can more clearly represent the data.

    Thanks again for all the time spent!
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50

    Re: Combine tables with Different Labels in Column

    Here is probably a better format, I would like to also show the Total Sum to only include the filtered data which represents only the countries we issue correspondence to. So one with sums for all countries and one with sums for just the correspondence countries

    Thanks again!
    Attached Files Attached Files
    Last edited by kellyjo7; 07-16-2019 at 09:32 AM.

  14. #14
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Combine tables with Different Labels in Column

    Sorry, I've not been able to look at this today, and I'm away tomorrow for a few days so it will be the weekend before I can pick this up again (if no-one else has chipped in).

    Pete

  15. #15
    Registered User
    Join Date
    12-08-2014
    Location
    South Dakota
    MS-Off Ver
    MS Office 365
    Posts
    50
    Quote Originally Posted by Pete_UK View Post
    Sorry, I've not been able to look at this today, and I'm away tomorrow for a few days so it will be the weekend before I can pick this up again (if no-one else has chipped in).

    Pete
    No problem! I just really appreciate al your help on it!

+ 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. Replies: 6
    Last Post: 10-24-2018, 09:04 AM
  2. Combine two tables to third with common column
    By ciki022 in forum Excel General
    Replies: 2
    Last Post: 06-19-2015, 12:05 AM
  3. [SOLVED] Excel-13 Add values in array matching specific row labels, column labels within date range
    By fadeoutagain27 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-18-2014, 03:55 PM
  4. Replies: 1
    Last Post: 05-11-2013, 02:35 AM
  5. How to combine inputs from 2 tables into a column chart
    By hai_krk in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-07-2013, 08:15 AM
  6. How do you Combine specific columns from 3 tables into new column of new table
    By R.Taylor.B in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-30-2012, 02:21 PM
  7. [SOLVED] Pivot Tables and Column Labels
    By Mark McDonough in forum Excel General
    Replies: 2
    Last Post: 06-08-2006, 10:10 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