Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KarenQ
 
Posts: n/a
Default 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?


--
KarenQ
------------------------------------------------------------------------
KarenQ's Profile: http://www.excelforum.com/member.php...o&userid=19608
View this thread: http://www.excelforum.com/showthread...hreadid=395115

  #2   Report Post  
Ron Coderre
 
Posts: n/a
Default


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


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=395115

  #3   Report Post  
KarenQ
 
Posts: n/a
Default


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


--
KarenQ
------------------------------------------------------------------------
KarenQ's Profile: http://www.excelforum.com/member.php...o&userid=19608
View this thread: http://www.excelforum.com/showthread...hreadid=395115

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
How to highlight alternate rows Brenda New Users to Excel 1 May 5th 05 08:14 PM
moving alternate rows ad Excel Discussion (Misc queries) 3 April 28th 05 02:46 PM
HOW CAN I AUTOMATICALLY INSERT ALTERNATE BLANK ROWS IN A LIST? Phil A. Excel Discussion (Misc queries) 1 April 19th 05 04:10 PM
Use of Exact(or other) function for alternate rows? yusee_ygs Excel Worksheet Functions 2 November 3rd 04 08:44 PM
Identifying exact values in alternate rows YG Excel Worksheet Functions 1 November 2nd 04 11:25 PM


All times are GMT +1. The time now is 09:54 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"