1. ## conditional equation

Hi
I have the following equation:
P = n + 0.12P
Rearrange:
0.88P = n
P = n/0.88
It works great for my needs EXCEPT for when the ultimate value of "0.12P" is less than 1.
In this case, I need the equation to be:
P = n + 1

I will be applying the code to Excel VBA - how can this be done?

2. ## Re: conditional equation

Not clear; I'll guess you mean this:

.12P = 1
P = 1/.12 = 25/3

Not familiar with Excel, but I presume "IF, THEN" commands exist:
P = n/.88 : IF P<25/3 THEN P = n+1