Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a very large table in Excel (1000's of rows) and I filter it to only show 10 rows.

I wonder if there is a way to delete the rows not shown (i.e. don't meet filter conditions)? This would enable me to reduce the file size before I send it.

There are many thousands of rows down under the table the user has created complex formulas and graphs which wont carry if I copy across to another worksheet if I just copy the rows.

share|improve this question
If the data is required for the "complex formulas and graphs", you can not delete the rows. These constraints seem to eliminate most ways to answer your question. You need to ask yourself what you are willing to give up in order to reduce the file size? –  CharlieRB Feb 8 '12 at 16:04

4 Answers 4

up vote 13 down vote accepted

Try this way for a quick solution:-

  1. Copy the filtered 10 results into another sheet
  2. Delete the actual sheet


As per the update, below are the steps:-

  1. Before starting, take a backup copy of excel sheet
  2. Assuming you are filtered all the records and showing only 10 Rows
  3. Remaining 1000's are hidden
  4. Click on Office Button
  5. Click on Prepare option
  6. Click on Inspect Document
  7. Refer this screenshot, how it looks enter image description here
  8. Click on Inspect button
  9. You will see a option "Hidden Rows and Columns" with "Remove All" button
  10. Click on Remove All button
  11. Click on close button
  12. Finally if you see, it has removed all "Hidden Rows and Columns"

Refer this screenshot

enter image description here


In Office 2010, Inspect Document can be found here:

enter image description here

share|improve this answer
see update as to why this solution wont work for me –  GreyCloud Feb 8 '12 at 14:26
@GreyCloud: As per your update, i have updated my answer. check it out –  Siva Charan Feb 8 '12 at 15:09
Impressive stuff, i would never have found this. however running this it says "could not complete" and then gives warnings about messed up references and the graph data disappears :-/ –  GreyCloud Feb 8 '12 at 15:34
Very nicely done! –  Jesse Feb 8 '12 at 17:23
Thank you very much! I would have NEVER looked in the Prepare menu. –  ckpepper02 Mar 11 '14 at 13:58

Why not just copy visible cells to a new sheet? Go to:

quick access tool bar drop downmore commandscommands not in the ribbonselect visible cellsadd

When you click this it will select everything that is visible and you can copy and paste everything that's visible.

share|improve this answer

This might be overly simplistic but why not just copy/paste the 10 rows you've filtered down to into a new spreadsheet?

share|improve this answer
because many thousands of rows down the user has created complex formulas and graphs which wont carry if i copy across :*( –  GreyCloud Feb 8 '12 at 14:25

Answer above is excellent.

In addition, the procedure indicated would apply to the whole workbook, so you might be messing other worksheets in the same workbook. In this case, you have to move the worksheet to a separate workbook, apply the procedure, and move the worksheet back to your original workbook. Cross linking of references/formulas/chart series among worksheets, involving the worksheet in question, might be a challenge.

As an alternative to this other answer (which cannot handle the case of charts, etc., as requested by the OP), Home -> Find & Select -> Go To Special -> Visible cells only. It appears to be exactly the same command (and then I wonder why it is listed under Commands Not in the Ribbon).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.