Formula Help

User2000

New Member
Joined
Oct 10, 2016
Messages
8
Hi,

I need a formula to accomplish the following:

X - Initial amount
Y - Factor

X * Y = A
A * Y = B
B * Y = C
C * Y = D
D * Y = E
F * Y = F
F * Y = G


I need a formula that can sum X+the sum of A-F.

For Example

X = 10,000
Y = .3

100000.33000
30000.3900
9000.3270
2700.381
810.324.3
24.30.37.3
7.30.32.2
2.20.30.7
sum=14285.4

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>

I'm looking for a formula that will output 14,285.4. It doesn't have to be 7 iterations, but would like at least 5. Any ideas?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi

You mean something like this

=G1+(G1*H1)+(G1*H1*H1)+(G1*H1*H1*H1)+(G1*H1*H1*H1*H1)+(G1*H1*H1*H1*H1*H1)+(G1*H1*H1*H1*H1*H1*H1)+(G1*H1*H1*H1*H1*H1*H1*H1)

you enter amount in G1(10000) and factor in H1(0.3) and the formula above in I1 resulting in 14284.78

dave
 
Upvote 0
Depending on how you want to do it, you can build a table with simple formulas you can copy down, or an array formula to do it all in one cell:

GHIJK
1100000.3300014285.43
230000.3900
39000.3270
42700.381
5810.324.3
624.30.37.29
77.290.32.187
82.1870.30.6561
9
10
1114285.43

<tbody>
</tbody>
Sheet3

Worksheet Formulas
CellFormula
I1=G1*H1
G2=I1
H2=H1
I11=SUM(I1:I8)+G1

<tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
K1{=SUM(G1*H1^(ROW(INDIRECT("1:9"))-1))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



If you like the table idea, build your table in G1:I8, and put the values in G1:H1. Put the formula in I1 and copy down. Put the formulas in G2:H2 and copy down. Then a simple SUM in I11 gives you the total.

Or you can use the formula in K1. It reads the values in G1:H1 and computes the sum of 9 values (G1 + I1:I8), which is why the formula says 9 instead of 7.

Hope this helps.


Edit: Shoot! My algebra teacher would be so disappointed in me! You just want the sum of a geometric series. There's a simple formula for that, no need for an array formula:

=G1*(H1^9-1)/(H1-1)
 
Last edited:
Upvote 0
This is a geometric series with 7 terms and a common factor of .3. So the formula is 10000*(1-.3^8)/(1-.3)=14284.78.
In general, if you have a common factor of k and n terms the formula will be Initial Amt*(1-k^(n+1))/(1-k)
 
Upvote 0
Here's a custom function that should do the trick. It has 3 arguments X, Y, and the number of iterations. So it would look like =Iterations(X, Y, Iterations)

Code:
Function Iterations(x As Integer, y As Double, i As Integer) As Double
Dim tot As Double
Dim tmp As Double

tot = x
tmp = tot * y

For j = 1 To i
    tot = tot + tmp
    tmp = tmp * y
Next j

Iterations = tot
End Function
 
Upvote 0
The same can be achieved using the SERIESSUM function:

=10000*SERIESSUM(0.3,0,1,{1,1,1,1,1,1,1,1,1})
 
Upvote 0
Your sum is a geometric series multiplied by x. The series for the first n terms (k = 0,1,....,n) has a closed form solution for Abs(y) < 1.

Sum(n) = x*[(1-y^(n+1))/1-y]

Using named ranges: x,y,n:
Excel Workbook
AB
1x10000
2y0.30
3n6
4Sum(6)14282.59
5Sum(7)14284.78
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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