Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default summing every other entry in excel

I would like to know how to sum every other entry in a column of numbers.
This is useful to perform numerical intergration. Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default summing every other entry in excel

Try one of these:

This will sum the odd numbered rows:

=SUMPRODUCT(--(MOD(ROW(D7:D17)-ROW(D7),2)=0),D7:D17)

This will sum the even numbered rows:

=SUMPRODUCT(--(MOD(ROW(D7:D17)-ROW(D7),2)=1),D7:D17)

--
Biff
Microsoft Excel MVP


"physiker" wrote in message
...
I would like to know how to sum every other entry in a column of numbers.
This is useful to perform numerical intergration. Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default summing every other entry in excel

Thanks very much. It works great. Small point: I find that the formulas are
reversed; i.e., the first formula sums the even rows (starting with row 1)
and the second the odd rows. Thanks again.

Physiker

"T. Valko" wrote:

Try one of these:

This will sum the odd numbered rows:

=SUMPRODUCT(--(MOD(ROW(D7:D17)-ROW(D7),2)=0),D7:D17)

This will sum the even numbered rows:

=SUMPRODUCT(--(MOD(ROW(D7:D17)-ROW(D7),2)=1),D7:D17)

--
Biff
Microsoft Excel MVP


"physiker" wrote in message
...
I would like to know how to sum every other entry in a column of numbers.
This is useful to perform numerical intergration. Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default summing every other entry in excel

You're welcome!

I find that the formulas are reversed; i.e., the first formula
sums the even rows (starting with row 1) and the second
the odd rows


No, the first formula sums the the odd numbered rows like 1,3,5,7,9.

The second formula sums the even numbered rows like 2,4,6,8,10.

The formula is using absolute row evaluation. If your range was A2:A13, A2
is an *even numbered row* even though it's the 1st (odd numbered) row
*relative* to the range.

--
Biff
Microsoft Excel MVP


"physiker" wrote in message
...
Thanks very much. It works great. Small point: I find that the formulas
are
reversed; i.e., the first formula sums the even rows (starting with row 1)
and the second the odd rows. Thanks again.

Physiker

"T. Valko" wrote:

Try one of these:

This will sum the odd numbered rows:

=SUMPRODUCT(--(MOD(ROW(D7:D17)-ROW(D7),2)=0),D7:D17)

This will sum the even numbered rows:

=SUMPRODUCT(--(MOD(ROW(D7:D17)-ROW(D7),2)=1),D7:D17)

--
Biff
Microsoft Excel MVP


"physiker" wrote in message
...
I would like to know how to sum every other entry in a column of
numbers.
This is useful to perform numerical intergration. Thanks.






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
Control Data Entry - push entry to next cell Ofelia Excel Discussion (Misc queries) 0 July 7th 08 04:19 PM
Auto entry of data based on entry of text in another column or fie Judy Rose Excel Discussion (Misc queries) 2 May 21st 08 01:14 PM
How do I set up entry box to auto-alphabatize each entry in list? jhakers Excel Discussion (Misc queries) 0 February 14th 08 08:01 PM
PivotTable and summing/not summing ~*Amanda*~[_2_] Excel Discussion (Misc queries) 1 March 14th 07 07:35 PM
Cell Entry That Locks Selected Cells From Any Data Entry. ron Excel Worksheet Functions 5 February 16th 07 09:52 PM


All times are GMT +1. The time now is 02:50 AM.

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

About Us

"It's about Microsoft Excel"