×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Exponential trendline fit in Excel using LINEST - fixing a variable

Exponential trendline fit in Excel using LINEST - fixing a variable

Exponential trendline fit in Excel using LINEST - fixing a variable

(OP)
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.

RE: Exponential trendline fit in Excel using LINEST - fixing a variable

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.

RE: Exponential trendline fit in Excel using LINEST - fixing a variable

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)  

RE: Exponential trendline fit in Excel using LINEST - fixing a variable

Note typo in Brad1979's last two formulae where "x)," should be "x,"
 

RE: Exponential trendline fit in Excel using LINEST - fixing a variable

Yes, thank you for catching that.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources