+ Reply to Thread
Results 1 to 2 of 2

Help with Summing Duplicates, deleting rows after summing and filling col. for unsummed

  1. #1
    Registered User
    Join Date
    01-24-2014
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    9

    Help with Summing Duplicates, deleting rows after summing and filling col. for unsummed

    Hello;

    I am beginning to work independently but this request has given me fits. I am attaching an example of my spreadsheet, although the real data is over 50,000 lines.

    What I need to do is find duplicates in Column C.
    Sum column R for those duplicate values into an inserted Column S, then delete the duplicates that don't have the sum in S.
    Once that is done I need to take all the values in R for the non duplicates and copy them into S.

    I figured out how to get the Summing done but everything I tried to delete the duplicates and them fill the non duplicates into S has failed. Any Ideas would be great.

    The code I used to do the summing was
    Please Login or Register  to view this content.
    Thanks for any assistance you can give

    Gene

    Example.xlsx
    Last edited by Leith Ross; 04-03-2014 at 08:25 PM. Reason: Added Code Tags

  2. #2
    Registered User
    Join Date
    12-07-2013
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Help with Summing Duplicates, deleting rows after summing and filling col. for unsumme

    Hi Gene

    Try the attached, I've made some assumptions, 1 the job numbers would not necessarily be in consecutive rows so I have sorted by job number first, 2 that you would also need to accumulate the Qty column. It seems likely that you might also want to accumulate the Admin Est column so you could extend the code in the loop to accommodate and adjust the inserts and deletes accordingly. Not sure if you'll see but I have added a button to the mini toolbar to run the code and extra worksheets to help with testing.

    Regards
    Ian
    Attached Files Attached Files

+ 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. [SOLVED] Deleting duplicates and summing totals
    By JetRich in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-28-2014, 03:00 PM
  2. Replies: 7
    Last Post: 10-12-2012, 10:26 PM
  3. [SOLVED] Summing unique values in rows with duplicates
    By mchauho in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-24-2012, 06:20 PM
  4. Best way to scan a column top to bottom summing and deleting whole rows that sum 0?
    By dumow880 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-11-2011, 10:35 PM
  5. Inserting and Deleting Rows & 3-D Summing
    By markvdh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-02-2011, 04:57 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