One way:
Assuming series / numbers is in row1
Sum of Even:
=SUMPRODUCT(--(MOD((1:1),2)=0),1:1)
Sum of Odd:
=SUMPRODUCT(--(MOD((1:1),2)=1),1:1)
If there could be possibly some "text" numbers in row1,
try:
Sum of Even:
=SUMPRODUCT(--(MOD((1:1),2)=0),--(1:1))
Sum of Odd:
=SUMPRODUCT(--(MOD((1:1),2)=1),--(1:1))
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
Akhilesh Dalia <Akhilesh
wrote in message
...
How do I get sum of all odd or even numbers from the series (1, 2, 3,
......,
n) by using SUMIF function and MOD function or any other function?