Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Help needed with a formula, please.

How do I write a formula to add the alternating cells in a column? It is a
rather large spreadsheet, so entering each cell individually would be rather
cumbersome and won't fit. Any insight would be greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Help needed with a formula, please.

This formula will sum every other row A2, A4, A6, A8, A10:

=SUMPRODUCT(--(MOD(ROW(A2:A10)-ROW(A2),2)=0),A2:A10)

This formula will sum every other row A3, A5, A7, A9:

=SUMPRODUCT(--(MOD(ROW(A2:A10)-ROW(A2),2)=1),A2:A10)

--
Biff
Microsoft Excel MVP


"Lissa" wrote in message
...
How do I write a formula to add the alternating cells in a column? It is
a
rather large spreadsheet, so entering each cell individually would be
rather
cumbersome and won't fit. Any insight would be greatly appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Help needed with a formula, please.

Found this online a while back...not sure where though:

Use these formulas when the data DOES start in row 1.
To start in row N, and sum rows N, 2N, 3N, etc, use
=SUM(IF(MOD(ROW($A$1:$A$20),$D$1)=0,$A$1:$A$20,0))


To start in row 1, and sum rows 1, 1+N, 1+(2N),etc use
=SUM(IF(MOD(ROW($A$1:$A$20)-1,$D$1)=0,$A$1:$A$20,0))

Maybe it came from he
http://www.ozgrid.com/Excel/sum-every-2nd-nth-cell.htm


Regards,
Ryan--


--
RyGuy


"Lissa" wrote:

How do I write a formula to add the alternating cells in a column? It is a
rather large spreadsheet, so entering each cell individually would be rather
cumbersome and won't fit. Any insight would be greatly appreciated.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula needed - is this possible? Kelly 1st Excel Discussion (Misc queries) 2 March 28th 07 03:17 AM
Formula needed, please Connie Martin Excel Worksheet Functions 3 December 5th 06 05:46 PM
Formula Help Needed Magic Speller Excel Discussion (Misc queries) 4 July 28th 06 05:44 AM
Formula needed. Beertje Excel Discussion (Misc queries) 7 November 29th 05 09:54 AM
Formula needed Connie Martin Excel Worksheet Functions 22 November 9th 04 03:43 PM


All times are GMT +1. The time now is 05:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"