H,
Are you updating the points used to generate the curve or just the data
calculated from the already finished fit?
If the latter then rearrange your fit to make a formula like suggested.
If the former:
Function still of the form
y = a*e^bx
Given Data of x and y add a column =LN(y) (Example dat in A1:A11)
ie rearrangement to form ln(y) = bx + ln(a)
y x ln y
296.8 1 5.693147181
44052.9 2 10.69314718
6538034.7 3 15.69314718
970330390.8 4 20.69314718
1.4401E+11 5 25.69314718
2.13729E+13 6 30.69314718
3.17203E+15 7 35.69314718
4.70771E+17 8 40.69314718
6.98685E+19 9 45.69314718
1.03694E+22 10 50.69314718
In D2:E2 array enter
=LINEST(C2:C11,B2:B11)
this will give you the coefficients b in D2 and ln(a) in E2
in F2 put =LN(E2) to get a
To calculate new y values based on x
=F2*EXP(D2*x)
To calculate new x values based on y
=1/D2*LN(y/F2)
Dan E
H said:
Thanks -
What I'm really looking for is a way to dynamically calculate an x value for a given y in a cell from the fitted function, which
would change as I update the spreadsheet.