+ Reply to Thread
Results 1 to 11 of 11

delete filtered rows without deleting the hidden rows in Excel 2010?

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Tempe, AZ
    MS-Off Ver
    Excel 2010
    Posts
    3

    delete filtered rows without deleting the hidden rows in Excel 2010?

    How do I delete filtered rows without deleting the hidden rows in excel 2010?

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: delete filtered rows without deleting the hidden rows in Excel 2010?

    simply filter, then select the rows using just the row numbers on the left hand side,then right click /delete,dont try to select say from a2:h20
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    Tempe, AZ
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: delete filtered rows without deleting the hidden rows in Excel 2010?

    I tried that and it deleted all of my rows including the hidden rows.

  4. #4
    Registered User
    Join Date
    09-25-2012
    Location
    Tempe, AZ
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: delete filtered rows without deleting the hidden rows in Excel 2010?

    I ended up doing a work around. adding a "flag" column and putting a Y in it for all the filtered rows. Then unfiltered, sorted on the flag column so they were all together and then deleting them.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: delete filtered rows without deleting the hidden rows in Excel 2010?

    hmm select range then right click delete whole row should work

  6. #6
    Registered User
    Join Date
    12-17-2012
    Location
    Boulder, CO
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: delete filtered rows without deleting the hidden rows in Excel 2010?

    1. use filter to select the rows you want to delete. At this point this will include the hidden rows you do not wish to delte
    2. on home ribbon, click find & select> go to special
    3. Check visible cells only. This will now select only the visible cells that you wish to delete
    4. Click delete>rows

    You are done...

    Hope this helps

  7. #7
    Registered User
    Join Date
    08-29-2013
    Location
    Chicago, IL, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: delete filtered rows without deleting the hidden rows in Excel 2010?

    Quote Originally Posted by dgouldmba1996 View Post
    1. use filter to select the rows you want to delete. At this point this will include the hidden rows you do not wish to delte
    2. on home ribbon, click find & select> go to special
    3. Check visible cells only. This will now select only the visible cells that you wish to delete
    4. Click delete>rows

    You are done...

    Hope this helps
    I tried this and it worked well. However, it left the blank rows scattered in my data. Since I use this data with a pivot table, I didn't want the blanks - you know the pivot tends to trip over them and show (blank) in some of the fields...

    I ended up sorting my data and deleting the unwanted rows in a block. The original dataset was 448 rows and I deleted 110, so this is manageable. I don't know what you would do with a huge dataset.

  8. #8
    Registered User
    Join Date
    04-08-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: delete filtered rows without deleting the hidden rows in Excel 2010?

    Hi,
    I have faced the same issue in 2007, I tried folowing way it worked:
    1. Keep the cursor on header cell eg, I wanted to filter by Product Name so I kept my cursor in Product Name Header.
    2. Click on Data>Filter
    3.Select Rows Number at Left most
    4. Right Click> Delete Rows

    Note: If only Delete option is displayed then it will delete hidden rows also, Try and follow steps again the option should be 'Delete Rows'

    Please let me know if it worked
    Gud Luck

  9. #9
    Registered User
    Join Date
    07-31-2014
    Location
    HK
    MS-Off Ver
    2013
    Posts
    1

    Re: delete filtered rows without deleting the hidden rows in Excel 2010?

    Thanks Anupma. Your method works. It deleted filtered rows and left no blank rows in the sheet. This is really useful.

  10. #10
    Registered User
    Join Date
    12-15-2012
    Location
    Leicestershire, UK
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: delete filtered rows without deleting the hidden rows in Excel 2010?

    I know this is an old thread but with the the filtered rows selected (entire rows including row label): Ctrl + - (minus) does the same thing.

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: delete filtered rows without deleting the hidden rows in Excel 2010?

    pATREUS welcome to the forum, and thanks for the input
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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