How to delete rows not in filter
Solution 1:
Try this way for a quick solution:-
- Copy the filtered 10 results into another sheet
- Delete the actual sheet
EDIT:
As per the update, below are the steps:-
- Before starting, take a backup copy of excel sheet
- Assuming you are filtered all the records and showing only 10 Rows
- Remaining 1000's are hidden
- Click on Office Button
- Click on Prepare option
- Click on Inspect Document
- Refer this screenshot, how it looks
- Click on Inspect button
- You will see a option "Hidden Rows and Columns" with "Remove All" button
- Click on Remove All button
- Click on close button
- Finally if you see, it has removed all "Hidden Rows and Columns"
Refer this screenshot
Note:
In Office 2010, Inspect Document can be found here:
Solution 2:
The way that worked for me was, assuming the filter is easy to reverse:
- Clear your filter.
- Create a temporary column, say called 'TEMP ORDER'.
- Set every value in that column to 0
- Reverse your filter (filter for everything you want to delete)
- Set every value in the 'TEMP ORDER' column to 1 on the filtered results
- Clear your filter.
- Sort your data by the 'TEMP ORDER' column, smallest to largest.
- Find on which row the first '1' occurs
- Resize your table (Design tab), having the last row be the row before the first '1'
- Delete the rows that are no longer in your table.
This may be a preferable solution if you don't want to mess up any other sheets in your workbook and are concerned about what might happen if you copy and paste your data around.
Solution 3:
Why not just copy visible cells to a new sheet? Go to:
quick access tool bar drop down → more commands → commands not in the ribbon → select visible cells → add
When you click this it will select everything that is visible and you can copy and paste everything that's visible.