sum odd numbers
Even:
=SUM(IF(MOD($A$1:$A$10,2)=0,$A$1:$A$10))
Odd:
=SUM(IF(MOD($A$1:$A$10,2)=1,$A$1:$A$10))
ENTER both with Ctrl+Shift+Enter
You will get {} round the formula if entered correctly.
"twty" wrote:
can anyone tell me a formula that will sum just the even numbers or the odd
numbers in a range?
|