Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations pierreick on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exponential trendline fit in Excel using LINEST - fixing a variable 1

Status
Not open for further replies.

GrahamSRowe

Bioengineer
Dec 30, 2010
1
I know that you can use the following formulae in Excel to fit a curve using LINEST for the named ranges x and y:

Exponential Trendline
Equation: y = c *e ^(b * x)
c: =EXP(INDEX(LINEST(LN(y),x),1,2))
b: =INDEX(LINEST(LN(y),x),1)

My question is, if I want to fix c=1 can I simply use

b: =INDEX(LINEST(LN(y),x),1) and assume c=1?

Also would it be correct to use

r2: = INDEX(LINEST(LN(y),x),TRUE,TRUE),3)

in this case?

Thanks very much.
 
Replies continue below

Recommended for you

The syntax for LINEST is:

LINEST(known_y's,known_x's,const,stats)

You can force the intercept to be 0 (which is equivalent to c=1) by setting const to FALSE. So your equations should be:

c: =EXP(INDEX(LINEST(LN(y),x, FALSE),1,2))
b: =INDEX(LINEST(LN(y),x, FALSE),1)

This will cause b to be calculated assuming that c = 1.
 
Also,

r2: = INDEX(LINEST(LN(y),x),TRUE,TRUE),3)

this is correct in general but you'll want to change it to the following when you for c=1:

r2: = INDEX(LINEST(LN(y),x),false,TRUE),3)
 
Note typo in Brad1979's last two formulae where "x)," should be "x,"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor