+ Reply to Thread
Results 1 to 4 of 4

Autofilter and Delete Rows Excluded from the Filtered Selection

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    49

    Autofilter and Delete Rows Excluded from the Filtered Selection

    Hi,

    I need to filter a worksheet on a particular filter value and then delete all the rows that were excluded by the filter
    I tried looping through each row and deleting Entirerow if a cell in the column I am filtering on is not equal to the filtered value, it works but takes forever since I have 10 thousand rows.

    Can you please help with a more efficient method?
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Autofilter and Delete Rows Excluded from the Filtered Selection

    If you filter for does not equal then all that's left will be Criteria "a" and no need too filter?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Autofilter and Delete Rows Excluded from the Filtered Selection

    It works great, thanks a lot!

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Autofilter and Delete Rows Excluded from the Filtered Selection

    You're welcome. Glad to help out and thanks for the feedback.

+ 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] selection.autofilter causing filtered range to reduce
    By excelloser in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-05-2012, 06:04 PM
  2. how to show excluded filtered data?
    By supremeone77 in forum Excel General
    Replies: 1
    Last Post: 11-18-2011, 12:18 PM
  3. Replies: 1
    Last Post: 04-17-2009, 05:04 PM
  4. How do I count rows in a filtered list when using AutoFilter?
    By chiefcook in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-22-2005, 10:10 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