#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default summation

If i want to sum all the numbers between 1 and 100 at an interval of say one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this? also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and 10.
I think it should be relatively simple...but i cant seem to figure it out.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default summation

If i want to sum all the numbers between 1 and 100 at an interval of say
one
(ie... 1+2+3...100) what do i do exactly?


=SUM(INDEX(ROW(1:100),,1))

suppose i wanted to sum all the values for n/2+4 where n is between 1 and
10.


Need more detail. An example?

Biff

"ExcelQuestion" wrote in message
...
If i want to sum all the numbers between 1 and 100 at an interval of say
one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this?
also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and
10.
I think it should be relatively simple...but i cant seem to figure it out.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default summation

It is a relatively simple, but not very intuitive trick you can use to do
this. You can use the ROW() function in an array formula. So, the formulas
for your examples would be:

=SUM(ROW(1:100))

=SUM(ROW(1:10)/2+4)

Array formulas must be commited with CTRL-SHIFT-ENTER rather than just
Enter. If done properly, the formula will be enclosed in { }.

Also note that since the number of rows in an Excel spreadsheet is limited
(65536 in Excel 2003 and earlier and 1048576 in Excel 2007) this trick will
only work for numbers within that range. So, no negative numbers either.

HTH,
Elkar


"ExcelQuestion" wrote:

If i want to sum all the numbers between 1 and 100 at an interval of say one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this? also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and 10.
I think it should be relatively simple...but i cant seem to figure it out.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default summation

If i want to sum all the numbers between 1 and 100 at an interval of say
one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this?
also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and
10.
I think it should be relatively simple...but i cant seem to figure it out.


The sum of the first N integers = N*(N+1)/2

The sum of the first N evaluations of N/2+4 = 4*N+N*(N+1)/4

These are direct calculations and can be performed outside of Excel if
needed.

Rick

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,202
Default summation

If i want to sum all the numbers between 1 and 100 at an interval of say
one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this?
also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and
10.
I think it should be relatively simple...but i cant seem to figure it
out.


The sum of the first N integers = N*(N+1)/2

The sum of the first N evaluations of N/2+4 = 4*N+N*(N+1)/4

These are direct calculations and can be performed outside of Excel if
needed.


The last formula simplifies to...

The sum of the first N evaluations of N/2+4 = N*(N+17)/4

Rick



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default summation

=(1+100)*100/2
and similarly
=((1/2+4)+(10/2+4))*10/2

Or otherwise
=AVERAGE(1,100)*100
and
=AVERAGE(1/2+4,10/2+4)*10
--
David Biddulph

"ExcelQuestion" wrote in message
...
If i want to sum all the numbers between 1 and 100 at an interval of say
one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this?
also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and
10.
I think it should be relatively simple...but i cant seem to figure it out.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default summation

Ok, I think i almost got it to work. Here is the equation i came up with:
=SUM(B6*(1+B7)^(ROW(1:B9)))
When i specify a number for B9 it works fine... ie:
=SUM(B6*(1+B7)^(ROW(1:8))) but i wanted to be able to compute the value
without going in and manually changing it, ie. through a link. is that
possible?



"Elkar" wrote:

It is a relatively simple, but not very intuitive trick you can use to do
this. You can use the ROW() function in an array formula. So, the formulas
for your examples would be:

=SUM(ROW(1:100))

=SUM(ROW(1:10)/2+4)

Array formulas must be commited with CTRL-SHIFT-ENTER rather than just
Enter. If done properly, the formula will be enclosed in { }.

Also note that since the number of rows in an Excel spreadsheet is limited
(65536 in Excel 2003 and earlier and 1048576 in Excel 2007) this trick will
only work for numbers within that range. So, no negative numbers either.

HTH,
Elkar


"ExcelQuestion" wrote:

If i want to sum all the numbers between 1 and 100 at an interval of say one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this? also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and 10.
I think it should be relatively simple...but i cant seem to figure it out.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default summation

Try this:

=SUM(B6*(1+B7)^(ROW(INDIRECT("1:"&B9))))

Where B9 holds the variable

Biff

"ExcelQuestion" wrote in message
...
Ok, I think i almost got it to work. Here is the equation i came up with:
=SUM(B6*(1+B7)^(ROW(1:B9)))
When i specify a number for B9 it works fine... ie:
=SUM(B6*(1+B7)^(ROW(1:8))) but i wanted to be able to compute the value
without going in and manually changing it, ie. through a link. is that
possible?



"Elkar" wrote:

It is a relatively simple, but not very intuitive trick you can use to do
this. You can use the ROW() function in an array formula. So, the
formulas
for your examples would be:

=SUM(ROW(1:100))

=SUM(ROW(1:10)/2+4)

Array formulas must be commited with CTRL-SHIFT-ENTER rather than just
Enter. If done properly, the formula will be enclosed in { }.

Also note that since the number of rows in an Excel spreadsheet is
limited
(65536 in Excel 2003 and earlier and 1048576 in Excel 2007) this trick
will
only work for numbers within that range. So, no negative numbers either.

HTH,
Elkar


"ExcelQuestion" wrote:

If i want to sum all the numbers between 1 and 100 at an interval of
say one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this?
also
suppose i wanted to sum all the values for n/2+4 where n is between 1
and 10.
I think it should be relatively simple...but i cant seem to figure it
out.



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default summation

actually i just figured out what row was doing... and im not sure if its
quite what i need because it would only be giving me values for whole numbers
and i would have to specify the variables in the equation beforehand as
opposed to making a link to a number somewhere else. Is there any way to do
the same type of thing for decimals? so 1, 1.1, 1.2... 2.5 lets say? so
something like the sum of (10(ratex)^n) where n is between 1 and 2.5 at
intervals of .1?

"Elkar" wrote:

It is a relatively simple, but not very intuitive trick you can use to do
this. You can use the ROW() function in an array formula. So, the formulas
for your examples would be:

=SUM(ROW(1:100))

=SUM(ROW(1:10)/2+4)

Array formulas must be commited with CTRL-SHIFT-ENTER rather than just
Enter. If done properly, the formula will be enclosed in { }.

Also note that since the number of rows in an Excel spreadsheet is limited
(65536 in Excel 2003 and earlier and 1048576 in Excel 2007) this trick will
only work for numbers within that range. So, no negative numbers either.

HTH,
Elkar


"ExcelQuestion" wrote:

If i want to sum all the numbers between 1 and 100 at an interval of say one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this? also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and 10.
I think it should be relatively simple...but i cant seem to figure it out.

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default summation

To get decimal values, you could do something like: (ROW(10:25)/10) This
would effectively give you 1 through 2.5 in .1 increments.

HTH,
Elkar


"ExcelQuestion" wrote:

actually i just figured out what row was doing... and im not sure if its
quite what i need because it would only be giving me values for whole numbers
and i would have to specify the variables in the equation beforehand as
opposed to making a link to a number somewhere else. Is there any way to do
the same type of thing for decimals? so 1, 1.1, 1.2... 2.5 lets say? so
something like the sum of (10(ratex)^n) where n is between 1 and 2.5 at
intervals of .1?

"Elkar" wrote:

It is a relatively simple, but not very intuitive trick you can use to do
this. You can use the ROW() function in an array formula. So, the formulas
for your examples would be:

=SUM(ROW(1:100))

=SUM(ROW(1:10)/2+4)

Array formulas must be commited with CTRL-SHIFT-ENTER rather than just
Enter. If done properly, the formula will be enclosed in { }.

Also note that since the number of rows in an Excel spreadsheet is limited
(65536 in Excel 2003 and earlier and 1048576 in Excel 2007) this trick will
only work for numbers within that range. So, no negative numbers either.

HTH,
Elkar


"ExcelQuestion" wrote:

If i want to sum all the numbers between 1 and 100 at an interval of say one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this? also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and 10.
I think it should be relatively simple...but i cant seem to figure it out.



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default summation

I got it working... here is what i ended up doing:

=SUM(B6*(1+B7)^(ROW(INDIRECT("1:"&C9))/12))

But i swear there must be a more efficient way of doing this.. no?

"ExcelQuestion" wrote:

If i want to sum all the numbers between 1 and 100 at an interval of say one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this? also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and 10.
I think it should be relatively simple...but i cant seem to figure it out.

  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default summation


See if this old post helps:


http://tinyurl.com/2alkj2



--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"ExcelQuestion" wrote in message
...
I got it working... here is what i ended up doing:

=SUM(B6*(1+B7)^(ROW(INDIRECT("1:"&C9))/12))

But i swear there must be a more efficient way of doing this.. no?

"ExcelQuestion" wrote:

If i want to sum all the numbers between 1 and 100 at an interval of say
one
(ie... 1+2+3...100) what do i do exactly? is there a formula for this?
also
suppose i wanted to sum all the values for n/2+4 where n is between 1 and
10.
I think it should be relatively simple...but i cant seem to figure it
out.



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
Summation of time Bikertyke Excel Worksheet Functions 7 November 27th 06 10:19 AM
Summation Operator LizM Excel Worksheet Functions 3 July 10th 06 06:37 PM
Automate MTD summation Cheryl Excel Worksheet Functions 2 July 6th 06 04:20 PM
Summation from a to b jeblunk Excel Worksheet Functions 3 December 4th 05 02:14 PM
Summation Problem cdehrlich Excel Worksheet Functions 2 November 8th 04 05:54 PM


All times are GMT +1. The time now is 03:51 PM.

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"