+ Reply to Thread
Results 1 to 6 of 6

delete duplicated rows based on a criteria in another column

  1. #1
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    delete duplicated rows based on a criteria in another column

    hi i need a macro that will delete all duplicated data in column A AND is blank in column F and then add the data in column AB..


    Column A contains the order number...
    Colunm F contains reference number...
    Column AB contains number of pcs

    What I need is that when there are the same order number with blank reference number, the number of pieces will be added into one cell..

    confusing? i know.. in the attached is an example...

    in column A there is 8 rows with the same order number and column F is all blanks... what i need is just to create this in one line and column AB will be the total of the 8 rows.

    all these logic will be applied to all the same data in column A and with blank cells in column F. in my attached file there is a before and after sheet.. i have highlighted the outcome that i wanted.


    I hope somebody could help me on this
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: delete duplicated rows based on a criteria in another column

    any help please?

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,893

    Re: delete duplicated rows based on a criteria in another column

    Bumping your thread after 1 hour and 20 minutes is a little bit hasty. We encourage users to wait at least 24 hours before bumping threads. We have many users worldwide across many time zones. Please have a little patience. The more convoluted your request, the longer it takes to develop a valid solution.

    Here is what our rules have to say on the matter.

    If your question has not been answered within a day, consider adding another post with any additional information you believe is relevant. If you think your post is good as is, just reply to your own thread with the words "Bump no response", which will bring it to the top of the forum.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: delete duplicated rows based on a criteria in another column

    Try this:-
    Run code on "Before sheet"
    NB:- This code will Modify your data sheet.
    Please Login or Register  to view this content.
    Regards Mick

  5. #5
    Forum Contributor
    Join Date
    06-24-2013
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    199

    Re: delete duplicated rows based on a criteria in another column

    thank you very much mick!!!

  6. #6
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: delete duplicated rows based on a criteria in another column

    You're welcome
    Regrds Mick

+ 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] How to find and delete rows based on criteria within a given column
    By Student1990 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-10-2013, 02:35 PM
  2. Delete Multiple Rows Based on Criteria in 1 Column
    By Farmer12345 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-20-2013, 04:41 PM
  3. Delete Rows In Sheet 1 Based Off Of Criteria On Sheet 2 Column A
    By Pfafkl13 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-23-2011, 06:35 PM
  4. Delete Rows Based on Column Criteria
    By telnoman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-22-2010, 09:31 AM
  5. Delete Rows based on criteria in Column A (not working)
    By Mslady in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2005, 08:27 PM

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