• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to find sum of odd numbers in a range of 1-100

sunita sharma

New Member
Hi

please help me to find out the sum of odd numbers in a range of 1-100 numbers


like 1+3+5+7+-------Upto 99


how it will find through a excel formula
 
Hi sunita sharma,


Welcome to the forum,try this array formula


=SUM( IF(MOD(A1:A100, 2) = 1, A1:A100, 0), 0)


Enter as
Code:
Ctrl+Shift+Enter
 
Sunita


Firstly, Welcome to the Chandoo.org forums


Code:
=SUM(2*ROW(OFFSET($A$1,,,100/2))-1) [b] Ctrl Shift Enter


or

=SUM(ROW(1:100)*MOD(ROW(1:100),2))
Ctrl Shift Enter[/b]
 
Back
Top