+ Reply to Thread
Results 1 to 7 of 7

Add alternate rows

  1. #1
    Teri
    Guest

    Add alternate rows

    I can't seem to find how to do this. Want to add every other row in a
    worksheet. Any ideas? Thanks!

  2. #2
    Alan Beban
    Guest

    Re: Add alternate rows

    Teri wrote:
    > I can't seem to find how to do this. Want to add every other row in a
    > worksheet. Any ideas? Thanks!

    Do you mean 1,3,5,etc. or 2,4,6,etc.?

    Alan Beban

  3. #3
    Teri
    Guest

    Re: Add alternate rows

    You got it! Thanks for responding

    "Alan Beban" wrote:

    > Teri wrote:
    > > I can't seem to find how to do this. Want to add every other row in a
    > > worksheet. Any ideas? Thanks!

    > Do you mean 1,3,5,etc. or 2,4,6,etc.?
    >
    > Alan Beban
    >


  4. #4
    Bob Phillips
    Guest

    Re: Add alternate rows

    =SUMPRODUCT(--(MOD(ROW(A1:A20),2)=0),A1:A20)

    will add every even row in column A

    =SUMPRODUCT(--(MOD(ROW(A1:A20),2)=1),A1:A20)

    adds every odd row

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "Teri" <[email protected]> wrote in message
    news:[email protected]...
    > I can't seem to find how to do this. Want to add every other row in a
    > worksheet. Any ideas? Thanks!




  5. #5
    Aladin Akyurek
    Guest

    Re: Add alternate rows

    Let A2:A400 be the range of interest...

    =SUMPRODUCT(--(MOD(ROW(A2:A400)-CELL("Row",A2)+0,H2)=0),A2:A400)

    Teri wrote:
    > I can't seem to find how to do this. Want to add every other row in a
    > worksheet. Any ideas? Thanks!


  6. #6
    Aladin Akyurek
    Guest

    Re: Add alternate rows

    Replace H2 with 2.

    Aladin Akyurek wrote:
    > Let A2:A400 be the range of interest...
    >
    > =SUMPRODUCT(--(MOD(ROW(A2:A400)-CELL("Row",A2)+0,H2)=0),A2:A400)
    >
    > Teri wrote:
    >
    >> I can't seem to find how to do this. Want to add every other row in a
    >> worksheet. Any ideas? Thanks!


  7. #7
    Teri
    Guest

    Re: Add alternate rows

    AWESOME! That was so easy! Thank you!

    "Bob Phillips" wrote:

    > =SUMPRODUCT(--(MOD(ROW(A1:A20),2)=0),A1:A20)
    >
    > will add every even row in column A
    >
    > =SUMPRODUCT(--(MOD(ROW(A1:A20),2)=1),A1:A20)
    >
    > adds every odd row
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "Teri" <[email protected]> wrote in message
    > news:[email protected]...
    > > I can't seem to find how to do this. Want to add every other row in a
    > > worksheet. Any ideas? Thanks!

    >
    >
    >


+ 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