Results 1 to 5 of 5
  1. #1
    2 Star Lounger
    Join Date
    Feb 2005
    Posts
    207
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Display rows - Even or Odd ONLY (Excel 2003)

    Do you know a way to display ONLY odd or even rows in Excel?

  2. #2
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Display rows - Even or Odd ONLY (Excel 2003)

    In a blank column you can add the formula in the 2nd row
    =ISODD(ROW())

    and copy it down the rows in the column.

    Then add an autofilter to this column (select the column, data - filter - autofilter) and chose TRUE to hide all the even rows or FALSE to hide all the odd rows.

    Steve

  3. #3
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Display rows - Even or Odd ONLY (Excel 2003)

    As a caveat to Steve's answer. If this function is not available, and returns the #NAME? error, install and load the Analysis ToolPak add-in.
    Jerry

  4. #4
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: Display rows - Even or Odd ONLY (Excel 2003)

    <img src=/S/blush.gif border=0 alt=blush width=15 height=15>Thanks, I forgot this was part of the analysis toolpack...

    If you do not want to install the analysis toolpach you can use the formula
    =mod(row(),2)

    And then filter on 0 or 1 to hideeither even or odd rows.

    Steve

  5. #5
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Display rows - Even or Odd ONLY (Excel 2003)

    Or, use the formula:

    <code>
    =if(mod(row(),2)=0,"Even","Odd")
    </code>

    Then select Even or Odd in the filter drop down.
    Legare Coleman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •