The UDF should go in a VBA module. It seems quite trivial so I hope I
am addressing your actual problem.
Function loan(P As Double, r As Double, n As Double, t As Double) As
Double
loan = P * (1 + r / n) ^ (n * t)
End Function
Larryh320 wrote:
I want to create a new User Defined Function to calculate compound
interest on a loan or investment. The formula is:
*F = P(1+R/N) ^ (N*T)*
Whe F = Final Amount
P = Initial Amount
R = Interest Rate
N = Number of Compounding Periods
T = Time (in years)
I have attempted this on a number of occassions and wind up with a mess
and not every close to what the result to be. A lot of times I get an
error.
I'd appreciate any help I could get with this.
Thank you.
--
Larryh320
------------------------------------------------------------------------
Larryh320's Profile: http://www.excelforum.com/member.php...o&userid=24722
View this thread: http://www.excelforum.com/showthread...hreadid=382900