+ Reply to Thread
Results 1 to 11 of 11

trendline equation

  1. #1
    Registered User
    Join Date
    02-19-2015
    Location
    Newcastle, England
    MS-Off Ver
    2013
    Posts
    98

    trendline equation

    hi

    is it possible to use the trendline equation to calculate the numerical values? So basically using it to forecast actual data instead of just a trend line?

    Many thanks for any help

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: trendline equation

    Hi,

    Yes it is. You need only replace the X in the formula with the relevant cell references that contain the X values you wish to use.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    02-19-2015
    Location
    Newcastle, England
    MS-Off Ver
    2013
    Posts
    98

    Re: trendline equation

    hi thanks for reply

    not really sure about that

    this is formula y = 1.7458e-0.121x

    or Rē = 0.9303

    my x axis is weeks so would i put the week number into the formula?

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: trendline equation

    It would depend on what values are currently feeding the chart. You should match those- I usually put the formula in a column alongside the actual values so that I can see actual versus trend for each point. If you are having problems, a sample file would allow me to show you. You can also calculate the two coefficients directly.

  5. #5
    Registered User
    Join Date
    02-19-2015
    Location
    Newcastle, England
    MS-Off Ver
    2013
    Posts
    98

    Re: trendline equation

    would you mind looking at the sheet? the trend is underneath the table

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: trendline equation

    See link for example. Post#6 has attachment using LINEST to obtain slope & intercept (for linear regression).
    http://www.excelforum.com/excel-gene...d-formula.html

    For polynomial regression. You can see example in link below (example is for 2nd order polynomial) and is solving for x. But you can easily adopt for larger order polynomial and to solve for y (no need for solver to solve for y).
    See Post#2.
    http://www.excelforum.com/excel-gene...d-formula.html

  7. #7
    Registered User
    Join Date
    02-19-2015
    Location
    Newcastle, England
    MS-Off Ver
    2013
    Posts
    98

    Re: trendline equation

    Thank you
    Does it work with exponential?

  8. #8
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: trendline equation

    For exponential formula. Using your example...
    =1.7242*EXP(-0.119*X)

    Replace X with cell reference to where x value is stored.

    For how to use LINEST to fit non-linear curve... see link.
    https://newtonexcelbach.wordpress.co...curve-fitting/

  9. #9
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: trendline equation

    Your chart X values are text, so they are actually being treated as 1,2,3,4 etc. Also, to calculate the coefficients we need to exclude the blank values. I've added two new columns to the left with these calculations in, and the two blue cells below the chart are the ones that calculate the coefficients.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    02-19-2015
    Location
    Newcastle, England
    MS-Off Ver
    2013
    Posts
    98

    Re: trendline equation

    Awesome thank you!

    If i want to create the trend, using say the previous 3 weeks data, can i adjust the formula to select that last 3 weeks data?

    Thanks

  11. #11
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: trendline equation

    You'll need to make sure the column A values start at 1 for the first data point.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 11-03-2014, 08:04 PM
  2. Trendline equation in use.
    By Martin Ulice in forum Excel General
    Replies: 1
    Last Post: 06-12-2012, 03:48 PM
  3. [SOLVED] Trendline equation help
    By nravanelli in forum Excel General
    Replies: 1
    Last Post: 04-04-2012, 08:19 PM
  4. Replies: 3
    Last Post: 03-06-2011, 01:38 PM
  5. Trendline equation
    By Deladier in forum Excel General
    Replies: 6
    Last Post: 02-03-2010, 04:53 PM
  6. Trendline equation
    By safdarhassan in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-11-2007, 08:51 AM
  7. Trendline Equation- value of x?
    By bastien86 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-07-2006, 10:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1