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

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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