+ Reply to Thread
Results 1 to 11 of 11

How to sum duplicate values then remove the duplicate rows?

  1. #1
    Registered User
    Join Date
    10-12-2015
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    95

    How to sum duplicate values then remove the duplicate rows?

    Hi everyone. Hoping someone might be able help me. I have huge amount of data like this.

    Account Code------ Date------ Journal No.------ Transaction #------ Debit------ Credit
    6052------ 17-Feb-12------ 6405------ 11592128 ------------------ 339------------ 5
    6052------ 24-Feb-12------ 6426------ 11592146------------------ 564------------
    6052------ 24-Feb-12------ 6426------ 11592146 ------------------ 564------------
    6052------ 24-Feb-12------ 6426------ 11592146 ------------------ 544------------
    6052------ 24-Feb-12------ 6426------ 11592146------------------ 544------------
    6052------ 24-Feb-12------ 6428------ 11592143 ------------------ 544------------ 5

    Now, I need to add up all the values under debit and credit columns that have the same transaction number/date and journal No. and remove all the extra rows like this

    Account Code------ Date------ Journal No.------ Transaction #------ Debit------ Credit
    6052------ 17-Feb-12------ 6405------ 11592128------------------ 339------------ 5
    6052 ------ 24-Feb-12------ 6426------ 11592146 ------------------ 2216------------
    6052 ------ 24-Feb-12 ------ 6428 ------ 11592143------------------ 544------------ 5

    Is there any way to do this other than manually as it would take ages?

    Thanks a lot in advance

    P.S I know I have made a mess with this table, but I hope you get the point
    Last edited by terry3218; 12-07-2015 at 01:11 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sum duplicate values then remove the duplicate rows?

    Hi,

    Would you upload the workbook and manually add the results you expect. We don't need zillions of rows, just enough to see the pattern. Clearly explain in a note how you have arrived at the results. It's not at all clear to me what you mean by 'extra rows' and how you define them.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    10-12-2015
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    95

    Re: How to sum duplicate values then remove the duplicate rows?

    Thanks for the reply, Richard. I am attaching the file. I want the results to be like in Sheet1, whereas the data I have is like in the sheet2.
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sum duplicate values then remove the duplicate rows?

    Would a Pivot Table not be a neater and more elegant and flexible solution. See attached
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    10-12-2015
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    95

    Re: How to sum duplicate values then remove the duplicate rows?

    Thanks a lot. Almost there. But only problem left is that I am really a beginner when it comes to pivot tables. The date is appearing only once for the transactions that took place on the same date. Can you guide me on this?

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sum duplicate values then remove the duplicate rows?

    Hi,

    I don't understand what you mean. The Pivot Table gives exactly the same results as those you specified in Sheet1. If you want something different then create an example and upload the workbook again.

  7. #7
    Registered User
    Join Date
    10-12-2015
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    95

    Re: How to sum duplicate values then remove the duplicate rows?

    Capture.PNG

    I want the dates to repeat for all transactions.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sum duplicate values then remove the duplicate rows?

    Hi,

    Select the Transaction Date in the Field List, Choose Field Settings, Layout & Print and tick 'Repeat Item Labels.

  9. #9
    Registered User
    Join Date
    10-12-2015
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    95

    Re: How to sum duplicate values then remove the duplicate rows?

    Thanks a million. You just saved me a hundred hours and from a lot of embarrassment. Added to your reputation

  10. #10
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to sum duplicate values then remove the duplicate rows?

    Happy to have assisted and thanks for the rep.

    Was it Management that were insisting on repeated row labels? Personally I think it looks neater (and certainly less cluttered) if stuff isn't repeated where it's not necessary. But of course we all have different views on what looks 'best'

  11. #11
    Registered User
    Join Date
    10-12-2015
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    95

    Re: How to sum duplicate values then remove the duplicate rows?

    Sorry for late reply. No, it was not management but I had to take it to another sheet to perform another working, and for that I needed to pick a few consecutive entries, and many of them were occurring on the same day.

+ 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. Remove Duplicate Rows based on Specific Values
    By zeanzi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2013, 08:01 PM
  2. Need: Total Values for Duplicate Entries, Do Not Remove Rows
    By esmithqg in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-23-2013, 02:29 AM
  3. [SOLVED] Remove duplicate rows by matching values across columns in Excel 2007
    By guest2013 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-15-2013, 12:00 AM
  4. [SOLVED] Remove Duplicate rows
    By andyking40 in forum Excel General
    Replies: 6
    Last Post: 04-28-2013, 12:09 PM
  5. Remove rows with duplicate values in one column based on value of another column
    By jolleyje in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-15-2013, 06:20 AM
  6. VBA helps needed to Sum duplicate values and delete duplicate rows
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2013, 11:40 PM
  7. excel macro to remove specific columns and rows + remove duplicate
    By garrywelson in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-17-2013, 12:03 PM
  8. [SOLVED] Sum Duplicate values then delete duplicate rows
    By keekdapolak in forum Excel General
    Replies: 7
    Last Post: 09-20-2012, 02:57 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