+ Reply to Thread
Results 1 to 7 of 7

Find matches between two columns to insert third but related information into a new column

  1. #1
    Registered User
    Join Date
    11-16-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    5

    Find matches between two columns to insert third but related information into a new column

    Hello,

    I have the following problem. I have 3 columns A, B and C. Column A is very long and all entries are repeated very often. Column B and C have the same amount of rows. In column B every entry of column A is listed, but only one single time! Column C provides new information relating to column B.
    Aim: I want to create a new column D. Column D will have the same amount of rows as column A. If an entry in A resembles an entry in B, the correlating entry in C (entry in the same row) shall be written in column D.
    So to say I want to compare two columns with each other and if two entries match, a third information, in relation to one of the two columns, shall be written into an additional column.

    Thanks so much for your help!!
    kind regards
    Daniel

  2. #2
    Registered User
    Join Date
    11-16-2012
    Location
    Crownpoint, New Mexico
    MS-Off Ver
    All.
    Posts
    59

    Re: Find matches between two columns to insert third but related information into a new co

    I feel this could be accomplished with vlookup; and you did a good job explaining the problem, can you provide a mock sample spreadsheet (commented) though?

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Find matches between two columns to insert third but related information into a new co

    In Col D use..

    =index(C:C,match(A1,B:B,0))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    11-16-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Find matches between two columns to insert third but related information into a new co

    Dear Ace_XL and cnodnarb,

    thanks very much for your replies. Unfortunately Ace_XL's suggestion doesn't work for me. I get #Name? in all cells of column D if I pull down.
    I attach the file as requested.
    Thanks again for your help!
    All the best
    D

  5. #5
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Find matches between two columns to insert third but related information into a new co

    Daniel,

    Ace's formula seems fine - no #Name?s here....
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  6. #6
    Registered User
    Join Date
    11-16-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    5

    Thumbs up Re: Find matches between two columns to insert third but related information into a new co

    Yes you're right. The formula works perfectly fine.
    Thanks all of you again.
    D

  7. #7
    Registered User
    Join Date
    11-16-2012
    Location
    Berlin
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Find matches between two columns to insert third but related information into a new co

    Hello,
    Find matches between two columns to insert third but related information into a new column(BB)_.xlsx

    I have an additional problem, following my thread earlier. Now I want to sum up values relating to the newly compiled information. I attached a new excel spreadsheet for visualization with comments. Everything stayed the same except columns D, F and G were added to the sheet.
    The earlier compiled column E has the same entries as column C, only that the entries in column C appear only one single time. Column E has more rows, because the entries are often repeated in this column. The information in column E relate to the values in columns F and G.
    Aim: I want to create new information for column D. All values (F and G) of one entry in C that relate to the same entries in E shall be added up in column D. That means whenever an entry in E matches the entry in C, the relating values to the entry in E (column F and G in the same row) shall be added up in the one cell next to the entry in C.
    E.g. on the spreadsheet: LAM: the region LAM appears one time in column C, but x-times in column E. All values (column F and G in the same row) for each time LAM appears in E shall be added up in cell D2. Subsequently the same procedure for all regions in C have to be repeated.

    Thanks so much for your help. My feeling says I have to use the “sumif” and “match” functions together, but unfortunately I have no idea how. Please ask if there are uncertainties. Abstract problems are very hard to describe.
    All the best
    Daniel

+ 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