+ Reply to Thread
Results 1 to 5 of 5

trying to delete entire row only if colF is duplicate AND col W blank..

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    17

    trying to delete entire row only if colF is duplicate AND col W blank..

    Hello - I am trying to delete the entire row from a worksheet only if:

    Column F is a duplicate AND columnW on the same row is blank...
    I'm having a tough time with this one, could anyone please help?
    Thank you in advance!

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: trying to delete entire row only if colF is duplicate AND col W blank..

    If I understood you correctly, you don't need a macro for this.

    First sort your entire data, by column F ascending, and second level sort column W ascending (non blank above, blank below).
    In a new column, put this formula on row 2 onwards
    Please Login or Register  to view this content.
    Now filter on this new column for "delete" and select those rows and delete away.
    Last edited by millz; 08-18-2014 at 01:14 PM.
    多么想要告诉你 我好喜欢你

  3. #3
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: trying to delete entire row only if colF is duplicate AND col W blank..

    Please Login or Register  to view this content.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  4. #4
    Registered User
    Join Date
    01-14-2014
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: trying to delete entire row only if colF is duplicate AND col W blank..

    that's perfect! Thank you Solus and Millz - I would apply the advanced filter, but with an ever-changing worksheet I think the VBA solution is prone to be the more flexible alternative.
    Thank you - it works perfectly

  5. #5
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: trying to delete entire row only if colF is duplicate AND col W blank..

    Glad to help. Thanks for the rep.

    If you are happy with the solution please mark the thread as [SOLVED] using the thread tools at the top.

+ 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] Delete entire row if duplicate
    By christopherL in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-11-2013, 10:49 AM
  2. Replies: 3
    Last Post: 10-21-2013, 07:33 PM
  3. Replies: 4
    Last Post: 09-18-2012, 09:06 AM
  4. Replies: 1
    Last Post: 05-10-2012, 04:58 PM
  5. Replies: 1
    Last Post: 05-11-2011, 07:11 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