+ Reply to Thread
Results 1 to 3 of 3

Summing Alternate Rows

Hybrid View

  1. #1
    Registered User
    Join Date
    02-08-2005
    Posts
    2

    Thumbs down Summing Alternate Rows

    We have spreadsheets with many rows and need to sum alternate rows. Is there a way to do this without entering a formula using the number of each row?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    Try this:

    =SUMPRODUCT(--(MOD(ROW($A$1:$A$18),2)=1),$A$1:$A$18)

    That formula sums odd-row values in the range A1:A18.

    To sum even-row values the formula is:
    =SUMPRODUCT(--(MOD(ROW($A$1:$A$18),2)=0),$A$1:$A$18)

    Adjust the ranges as necessary.

    Does that help?

    Ron

  3. #3
    Registered User
    Join Date
    02-08-2005
    Posts
    2

    Alternate Rows

    Thanks so much!! That was so easy. I figured there had to be a simple solution.

+ 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