+ Reply to Thread
Results 1 to 7 of 7

Remove dups, combine cell total

  1. #1
    Forum Contributor
    Join Date
    06-28-2004
    MS-Off Ver
    Home/Office 2016
    Posts
    246

    Remove dups, combine cell total

    Data in col A-U. Delete rows with duplicate policy numbers and total the S column for all.
    Column B Column S
    CF00034 -- 5.21
    CF00034 -- 2.15
    PE00011 -- 1.45
    PE00011 -- 4.03
    PE00011 -- 2.16
    G000001 -- 5.25

    output - - Need to keep all data for columns A-U but delete the duplicate records and total the S column (deleted record 2, 4 and 5 added their S column to the first one)
    A..........B...........C.......D.......E.......S........T......U
    01 - CF00034 - Jane - xxxx - xxx - 7.36 - xx - xx
    01 - PE00011 - John - xxxx - xxx - 7.64 - xx - xx
    01 - G000001 - Mike - xxxx - xxx - 5.25 - xx - xx
    Last edited by x65140; 07-28-2011 at 04:11 PM. Reason: columns not matching preview

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Remove dups, combine cell total

    Let me know if this code works for you:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-28-2004
    MS-Off Ver
    Home/Office 2016
    Posts
    246

    Re: Remove dups, combine cell total

    Wow! Works great! Thanks for the help!

  4. #4
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Remove dups, combine cell total

    Glad it worked out for you!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,019

    Re: Remove dups, combine cell total

    Try this.

    Not that this is designed to build the summary in columns AA onwards and then deletes columns A to Z

    Please Login or Register  to view this content.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,019

    Re: Remove dups, combine cell total

    Sorry, alternative approach but beaten to the punch ;-)

    Having so much fun putting it together, you might as well have it.

    Regards

  7. #7
    Registered User
    Join Date
    09-15-2011
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Remove dups, combine cell total

    what if I want to not just sum up the S column, but T and U as well?

+ 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