
Originally Posted by
avveerkar
One quick way without going for macro is take an unused column. Enter formula =Mod(Row(),10) in all the cells of this column dow to the last row of the list. It will give 1 in row 1, 2 in row 2 etc and 0 in row 10. This pattern will repeat. Thus rows 9,19,29,... will have 9 in the column. Switch on autofilter. Use "not equal to 9 " param of autofilter on the column. It will display all rows except 9,19,29 etc. Select the whole sheet ( Control A ) and delete all rows. Switch off autofilter and you are done!
Are you sure that you want to delete all those non-10 rows? Why not just hide them by using filter equal to 9?
Tip: to quickly populate all the cells in the unused column with our formula, select a column adjacent to the used column ( which has data in all cells to the last cell of your list ). Enter the formula in the first cell of the column. Take the cursor to the lower right corner of the cell when it turns to "+". Just double click. It will populate all the cells to the last row.
A V Veerkar
Bookmarks