+ Reply to Thread
Results 1 to 4 of 4

Match function--two columns with duplicates, link together?

Hybrid View

  1. #1
    Registered User
    Join Date
    10-15-2014
    Location
    Chicago
    MS-Off Ver
    Newest
    Posts
    2

    Match function--two columns with duplicates, link together?

    Hey guys, this is very basic so I don't think I need to upload, but can't figure out from googling. I have three columns to deal with, A and B are lists of countries and territories, and C is GDP data on column B.
    I want to get a list where I have the C values correspond to A by matching the B and A values while also moving C with B.

    For example:
    Column C is the data for the countries in B (arbitrary numbers).
    A ___________ B________C
    USA_______France_____1000
    Germany___USA_______700
    Poland_____China______800
    Japan_____Germany____900
    Finland_____Estonia____1000
    France_____Poland_____700
    Estonia
    St. Lucia

    How do I match same values of column B to column A while also making the corresponding values for C move with B? To look maybe like this:

    A_________B_________C
    USA______USA_______700
    Germany__Germany___900
    Poland____Poland_____700
    Japan
    Finland
    France____France_____1000
    St. Lucia
    China_____China______800


    Thanks very much guys. Sorry if this is bad formatting, I am new to this forum, but since this is the beginner one I hope it will be okay.
    Last edited by zeppelinfan; 10-15-2014 at 05:18 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Match function--two columns with duplicates, link together?

    'LINE UP DATA
    Here's a macro for matching rows of data or groups of data by key values in each group.
    LINE UP MATCHES - LineEmUp.xls



    The sample workbook on that page can be used for your project. I think LineEmUp4 is the one for you to use, just insert a blank column between your A and B so both sets can be considered "two-column" data. After you run the macro and it aligns all the values for you, you can delete that empty column B again.
    Last edited by JBeaucaire; 12-26-2019 at 04:54 PM.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-15-2014
    Location
    Chicago
    MS-Off Ver
    Newest
    Posts
    2

    Re: Match function--two columns with duplicates, link together?

    Thanks a lot. This worked!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Match function--two columns with duplicates, link together?

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. Thanks.

+ 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. Index Match from two columns and Remove duplicates,
    By gurkovic in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-16-2014, 05:18 AM
  2. Replies: 0
    Last Post: 11-15-2012, 06:47 AM
  3. Finding duplicates between data ranges based on 2 columns match
    By alicia_ixchel in forum Excel General
    Replies: 0
    Last Post: 03-30-2011, 08:29 PM
  4. How can I link and match data in columns?
    By davepearson in forum Excel General
    Replies: 3
    Last Post: 08-12-2009, 07:27 AM
  5. Function that displays duplicates when match on 2 columns
    By grafx77 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-30-2007, 11:25 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