+ Reply to Thread
Results 1 to 5 of 5

Pair columns and based on matching add a value from a third coumn

  1. #1
    Registered User
    Join Date
    03-05-2015
    Location
    London, England
    MS-Off Ver
    latest
    Posts
    5

    Pair columns and based on matching add a value from a third coumn

    Hi,

    I have 3 columns (A, B, C), from where two (A, B) has matching numbers(id's) - but not all cases, and the 3rd column (C) contains values related to the 2nd column (B). I would like to pair the first two columns (A, B) and if there is a match, add the value from the 3rd (B) column.

    example:

    A B C
    725 1078 0.82
    863 1079 0.39
    926 1080 0.62
    957 1082 0.95
    1078 1083 0.26
    1080 1084 0.48
    1082 1240 0.99
    1240 1241 0.73
    1242 1242 0.79
    1244 1245 0.84
    1245 1249 0.13
    2256 0.25
    2257 0.01
    2258 0
    2259 0.31
    2260 0.11
    2261 0.23
    2262 0.03



    This is how it should look after pairing:


    957 - -
    1078 1078 0.82
    1080 1080 0.62

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Pair columns and based on matching add a value from a third coumn

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Quang PT

  3. #3
    Registered User
    Join Date
    03-05-2015
    Location
    London, England
    MS-Off Ver
    latest
    Posts
    5

    Re: Pair columns and based on matching add a value from a third coumn

    Hi,

    I have attached a sample worksheet.

    Sample.xlsx

  4. #4
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Pair columns and based on matching add a value from a third coumn

    Try this array formula in H6:

    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    In I6:

    =IF(H9="","",H9)

    J6:

    =IF(H9="","",VLOOKUP(I9,$B$2:$C$584,2,0))

    Drag all down untill geting blank

  5. #5
    Registered User
    Join Date
    03-05-2015
    Location
    London, England
    MS-Off Ver
    latest
    Posts
    5

    Re: Pair columns and based on matching add a value from a third coumn

    many thanks for the help!

+ 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: 0
    Last Post: 10-11-2013, 05:24 AM
  2. Replies: 3
    Last Post: 07-20-2012, 07:29 PM
  3. sort columns based on matching 1st & 2nd columns
    By repke in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-13-2011, 01:37 PM
  4. [SOLVED] Matching max in a subgroup with corresponding data pair
    By [email protected] in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2006, 02:10 PM
  5. [SOLVED] Matching one pair of cells with another
    By Giselle in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-19-2006, 08:35 PM

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