Results 1 to 2 of 2

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

Threaded View

  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
    iLastRow = Cells(Rows.Count, "C").End(xlUp).Row
    For i = 2 To iLastRow
    If Cells(i, "C").Value = Cells(i - 1, "C").Value Then
    If Cells(i, "C").Value <> Cells(i + 1, "C").Value Then
    Cells(i, "S").Value = Application.SumIf( _
    Columns(3), Cells(i, "C").Value, Columns(18))
    End If
    End If
    Next i
    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

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