+ Reply to Thread
Results 1 to 7 of 7

Subtotal Duplicate Values

  1. #1
    Registered User
    Join Date
    07-14-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    26

    Subtotal Duplicate Values

    Hi All

    I previously had help on this one, but I have just realised that it’s not quite what I want.

    Currently my macro searches for any duplicate values in the first column, then it counts the number of occurrence’s and totals them in the second column.

    Rather than counting the number of duplicate values, I want it to Sum the values that are in the 2 column.

    Any help will be appreciated
    Thanks
    Colin

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Subtotal Duplicate Values

    No need for a code, Pivot table does the job, but a code is attached.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    07-14-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Subtotal Duplicate Values

    Test3.xlsmHi AB33

    thanks for the response, however the reason i have not used a pivot table, is because the data i want to subtotal is part of a much larger sheet. I have uploaded another sheet as an example, Sheet1 is how the data will look before the marco takes place, the sheet titled "after macro" shows how I would like the data to look.

    thanks

  4. #4
    Registered User
    Join Date
    07-14-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Subtotal Duplicate Values

    ........Bump

  5. #5
    Registered User
    Join Date
    07-14-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Subtotal Duplicate Values

    Hi All

    I am still stumped, trying to get this macro to work

    I want it to work in a similar way to the Subtotal funtion, only rather than Subtotalling each row, I want only want it to subtotal any duplicate rows. (the number of rows & quantities vary each time)

    my current macro currently counts the number of duplicated rows, rather than summing the values in the adjacent column

    I have attached an additional workbook, which shows how my data currently looks, and on the 2nd sheet is how i would like it to look.

    any help will be much appreciated
    thanks
    colin
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Subtotal Duplicate Values

    try
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-14-2011
    Location
    plymouth
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Subtotal Duplicate Values

    Thank you very much, works perfect!

    regards
    colin

+ 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