+ Reply to Thread
Results 1 to 2 of 2

Add certain cells based on a function

  1. #1
    Registered User
    Join Date
    04-01-2004
    Posts
    20

    Add certain cells based on a function

    I have a column of data with several hundred rows. I want to add every other row and show the results in another cell. How would i go about doing this?

    How about if i wanted to add every 2nd and 3rd row? Is there a function i can use to do this?

    In other words:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10

    I want to sum up the (2+3) then skip a row (5+6) skip another row (8+9) etc.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,493
    =SUM(IF(MOD(ROW($A$10:$A$19),$B$20)=0,$A$10:$A$19,0))

    this is an array formula you will need to controll shift enter for it to work

    $B$20 is the Nth value you want

    Add every other number input 2 etc.

+ 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