ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Summing Alternate Rows (https://www.excelbanter.com/excel-discussion-misc-queries/40006-summing-alternate-rows.html)

KarenQ

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


Ron Coderre


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


KarenQ


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



All times are GMT +1. The time now is 04:44 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com