Recursion

Chaddyb

New Member
Joined
Dec 19, 2017
Messages
12
I have some data that i want modeled over the course of the year.
The model depreciates a value by a set percentage and a set number and then multiplies it by a set value

Eg.
A0 = A*5
A1 = (A0 - A0*B -C)*5
A2 =( A1 - A1*B-C)*5
etc
eg
A= 10000
B = 10%
C = 100
January = 50000
Feb = 44500
March =39550
etc

I know this can be done by setting up a table with the values. I am wondering if this can be done all in a formula, whether through standard excel or VBA
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Your formula and numbers don't match. Did you mean
A1 = A0 - A0*B -C*5 ?

If so, the Nth term (starting from N=0) will be:

5A(1-B)^N-50C(1-(1-B)^N)
 
Upvote 0
No I mean the entire term is then multiplied by 5 not just C

In simple terms, I can replicate your numbers:
A1 = 50,000
A2 = 90% A1 - 500 = 44,500
A3 = 90% A2 - 500 = 39,550

These don't match the formulae you've provided.

My formula for An produces the next two values as 35,095 (n=3) and 31,085.50 (n = 4). Are these the numbers you want?
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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