Sum function with formula

pernille

New Member
Joined
Aug 13, 2018
Messages
1
Hello experts,

Is it possible to sum a formula like below in an excel cell (and how?):

for i=0 to m-1 Sum ((m-i)/m * x)

where 1<m=<12.

In my sheet I wish to do the calculation for a lot of rows a m and x value for each row.

Hope you can help me with this challenge.

Thanks!!
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
So this is SUM(1 to m)/m * x

SUM(1 to m) = m * (m + 1) / 2
SUM(1 to m) / m = (m + 1) / 2
SUM(1 to m) / m * x = x * (m + 1) / 2

You can run a complex formula to do the iteration but in the end there's a simple answer:


Book1
ABCD
1mxcomplex answereasier
210527.527.5
35133
42066363
5772828
Sheet2
Cell Formulas
RangeFormula
D2=$B2*($A2+1)/2
C2{=SUM(($A2+1-ROW(INDIRECT("A1:A"&$A2)))/$A2*$B2)}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Last edited:
Upvote 0

Forum statistics

Threads
1,216,588
Messages
6,131,589
Members
449,657
Latest member
Timber5

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top