+ Reply to Thread
Results 1 to 4 of 4

Deleting odd number rows only

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    louisville, ky
    MS-Off Ver
    Excel 2003
    Posts
    1

    Deleting odd number rows only

    I am trying to delete odd number rows on a spreadsheet only, this is a 50 page report and I do not need the odd numbered ones. Any help,
    Thanks,

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Deleting odd number rows only

    You get better help if you post an Excel-example of your workbook, without confidential information.

    Make sure the workbook demonstrates your desired results if possible, or just highlight the cells you're trying to fix.

    Use BEFORE/AFTER sheets if that helps make it clearer.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Deleting odd number rows only

    1) In an empty column on your datasheet, enter this formula on the first row of data:

    =MOD(ROW(),2)

    2) Copy that cell down the whole dataset. You now have a series of 1s and 0s.

    3) Put the word "key" just above the first cell

    4) Highlight the entire set of new data from "Key" down through the last added formula cell

    5) Turn on the Data > Filter > Autofilter

    6) Click on the drop down arrow on the "key" cell and filter by the option "1", this will leave all the odd rows visible and hide the even rows

    7) Highlight all the remaining visible rows, the entire rows, and right-click/DELETE them.

    8) Turn off the Autofilter, clear the added formulas
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Deleting odd number rows only

    1) In an empty column on your datasheet, enter this formula on the first row of data:

    =MOD(ROW(),2)

    2) Copy that cell down the whole dataset. You now have a series of 1s and 0s.

    3) Put the word "key" just above the first cell

    4) Highlight the entire set of new data from "Key" down through the last added formula cell

    5) Turn on the Data > Filter > Autofilter

    6) Click on the drop down arrow on the "key" cell and filter by the option "1", this will leave all the odd rows visible and hide the even rows

    7) Highlight all the remaining visible rows, the entire rows, and right-click/DELETE them.

    8) Turn off the Autofilter, clear the added formulas

+ 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