+ Reply to Thread
Results 1 to 4 of 4

Merging of data in one column by comparing the values in another column

  1. #1
    Registered User
    Join Date
    07-22-2019
    Location
    India
    MS-Off Ver
    2007
    Posts
    2

    Merging of data in one column by comparing the values in another column

    I wish to merge data in column B by comparing them with value in column A. Also sum of column C also to be calculated by comparing with column A. Sample data is attached herewith.

    EST DATE AMOUNT
    MDMDU0000158000 01-Apr-16 75
    MDMDU0000197000 01-Jan-17 75
    MDMDU0000197000 01-Feb-17 75
    MDMDU0000197000 01-Dec-16 75
    MDMDU0000197000 01-Mar-17 75
    MDMDU0000689000 01-Apr-16 368
    MDMDU0000689000 01-Jan-16 368
    MDMDU0000689000 01-Jul-16 368
    MDMDU0000689000 01-Jun-16 368
    MDMDU0000689000 01-May-16 368
    MDMDU0000689000 01-May-15 368
    MDMDU0000689000 01-Sep-15 368
    MDMDU0000689000 01-Feb-16 368
    MDMDU0000689000 01-Mar-16 368
    MDMDU0000689000 01-Jun-15 368
    MDMDU0000689000 01-Jul-15 368
    MDMDU0000689000 01-Oct-15 368
    MDMDU0000689000 01-Nov-15 368
    MDMDU0000689000 01-Dec-15 368
    MDMDU0000689000 01-Feb-15 368
    MDMDU0000689000 01-Mar-15 368
    MDMDU0000689000 01-Aug-15 368
    MDMDU0000689000 01-Apr-15 368
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,342

    Re: Merging of data in one column by comparing the values in another column

    Welcome to the forum.

    Do you mean this?

    Excel 2016 (Windows) 32 bit
    E
    F
    2
    Row Labels Sum of AMOUNT
    3
    MDMDU0000158000
    75
    4
    MDMDU0000197000
    300
    5
    MDMDU0000689000
    6624
    6
    Grand Total
    6999
    Sheet: Sheet1

    If so, then select your data > Insert > Pivot Table.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-22-2019
    Location
    India
    MS-Off Ver
    2007
    Posts
    2

    Re: Merging of data in one column by comparing the values in another column

    Thanks for the reply. I want output in the following format.

    MDMDU0000158000 01-04-2016 75
    MDMDU0000197000 01-12-16, 01-01-17, 01-02-17, 01-03-17 300
    MDMDU0000689000 01-02-15, 01-03-15, 01-04-15 etc. 6624

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,342

    Re: Merging of data in one column by comparing the values in another column

    Please mock up (in your workbook) the results you want to see and post again. 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. Comparing values in one column for each unique value in another column
    By n604ff in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2017, 06:39 AM
  2. Merging Multiple Sheet's column of data based on other column's cell value
    By BALA1983 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2017, 12:32 AM
  3. [SOLVED] Comparing Same Column to Column for Matches and then Comparing Offset Values
    By Exia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-01-2015, 12:00 PM
  4. Merging some data from Column A, some from Column B, and all of Column C--a fun one :)
    By richardwedamins in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-18-2014, 11:04 AM
  5. Replies: 5
    Last Post: 05-14-2014, 08:35 AM
  6. Replies: 19
    Last Post: 03-15-2014, 04:50 PM
  7. Replies: 3
    Last Post: 10-15-2012, 10:42 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