Results 1 to 12 of 12

Merge cells -find & higlight duplicates - add sum and then Delete remaining duplicate rows

Threaded View

  1. #1
    Registered User
    Join Date
    05-25-2012
    Location
    Virginia beach, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    57

    Merge cells -find & higlight duplicates - add sum and then Delete remaining duplicate rows

    I have attach a spread sheet with three tabs: I would like help to create a macro (will use marco daily on different worksheet with new download data) to do the following steps:

    Merge cells =$B2&$C2&$D2&$A2 NOTE: B2= contract, C2=call, D2 = clin A2 = Inv

    If any of the merge cells are duplicate then highlight

    Add the sum all of the rows of QTY if the group match by contract+call+clin+Inv and then change the QTY on the first line to the total sum..

    For example from attach worksheet)
    Rows 21 thru 28 matches which I have found by merging $B2&$C2&$D2&$A2 and then highlighted duplicate if matches The next step: I added the QTY in columns E (QTY) rows 21 thru 28 which added to 17.
    In row 21 I changed the QTY to the total sum of 17.

    I would repeat this step with each merge match.

    Sorry if I made this confusing, but I hoping my spreadsheet will help. I am open to a faster and easier way because some days I have 400 lines with 20 rows with same contract, call clin and Invoice but the QTY is different and I have to add and change manually.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 04-08-2014, 04:44 AM
  2. Macro To Find Rows With Duplicates, Compare Cells, And Delete Rows. - Excel
    By Kwame001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2013, 10:41 AM
  3. Sum, Merge and Delete Duplicate Rows
    By astoria in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-23-2013, 02:02 PM
  4. Replies: 13
    Last Post: 08-23-2011, 11:00 AM
  5. Replies: 11
    Last Post: 04-28-2011, 09:37 PM
  6. Merge Cells(maybe) then delete duplicates
    By J_Tackett in forum Excel General
    Replies: 4
    Last Post: 04-21-2010, 09:07 AM
  7. Find data and delete remaining rows (For each loop)
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2009, 11:45 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