Results 1 to 6 of 6

Deleting Rows to compress data

Threaded View

  1. #4
    Forum Contributor
    Join Date
    01-10-2006
    Location
    Ahmedabad, India
    MS-Off Ver
    Office 2000
    Posts
    346
    Quote Originally Posted by Leal72
    I've been searching through but no luck finding what I need.

    I have data files with over 8000 rows of data, I don't need all the data. I want to keep every 10th row begining with row 9. Rows 1 through 8 have header information.

    1.header info
    2.header info
    3.header info
    4.header info
    5.header info
    6.header info
    7.header info
    8.header info
    9.keep data
    10.delete
    11.delete
    12.delete
    13.delete
    14.delete
    15.delete
    16.delete
    17.delete
    18.delete
    19.keep data
    20.delete
    21.delete
    22.delete
    23.delete
    24.delete
    25.delete
    26.delete
    27.delete
    28.delete
    29.keep data
    30.delete
    and so on
    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
    Last edited by avveerkar; 10-11-2007 at 03:08 PM.

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