+ Reply to Thread
Results 1 to 7 of 7

Excel Trendline Formula Errors

  1. #1
    Forum Contributor
    Join Date
    07-19-2017
    Location
    usa
    MS-Off Ver
    2016 Professional Plus
    Posts
    130

    Excel Trendline Formula Errors

    Hi,
    I have data in excel attachment. I plotted that data and created linear trendline. Now when I use the formula to calculate values of y using the same trendline data points then it gives me wrong values. I have attached the file and created the comment in the file for your understanding. Please advise on this issue.

    Thanks and Regards,
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Excel Trendline Formula Errors

    What would the correct results be and why?

    Administrative Note:

    Is your forum profile showing the Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    Last edited by AliGW; 12-02-2023 at 04:21 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    07-19-2017
    Location
    usa
    MS-Off Ver
    2016 Professional Plus
    Posts
    130

    Re: Excel Trendline Formula Errors

    The values are negative, as you can see from the trendline. The formula is not giving right results based on trendline.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,301

    Re: Excel Trendline Formula Errors

    And what would the correct results be?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Excel Trendline Formula Errors

    The slope is inaccurate from the graph. USE SLOP and INTERCEPT and respect the formula y=mx+c and it's fine.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Contributor
    Join Date
    07-19-2017
    Location
    usa
    MS-Off Ver
    2016 Professional Plus
    Posts
    130

    Re: Excel Trendline Formula Errors

    Thank you so much Glenn. Now my concern is , what if the graph is not a straight line, and we only rely on Trendlines to produce the equation based on given data sets. These automatically produced equation will not be right to plot and predict values for future. I am keen to know about it.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Excel Trendline Formula Errors

    For a 4th order polynomial:

    =LINEST(known ys,known xs^{1,2,3,4})

    Cell 1 = 4th order multiplier
    Cell 2 = 3rd order multiplier
    Cell 3 = 2nd order multiplier
    Cell 4 = 1st order multiplier
    Cell 5 = Intercept


    For a 3rd order polynomial:

    =LINEST(known ys,known xs^{1,2,3})

    Cell 1 = 3rd order multiplier
    Cell 2 = 2nd order multiplier
    Cell 3 = 1st order multiplier
    Cell 4 = Intercept

    LINEST needs to be entered as an array formula in ant Pre-O365 product (CTRL-SHIFT-ENTER). Following taht pattern, you can solve any order polynomial.

    Here's a 3rd order example.

    You're welcome. Thanks for letting us know that you got an answer.




    Please take a moment and consider clicking the "Add Reputation" button at the foot of any of the posts of anyone who helped you reach a solution here today.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.
    Attached Files Attached Files

+ 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. Advanced Excel Formula Errors
    By dbuell in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-02-2020, 12:52 AM
  2. Excel Formula Errors and Their Meaning
    By panel123 in forum Excel Tips
    Replies: 0
    Last Post: 04-28-2018, 06:09 PM
  3. [SOLVED] Excel 2010 Trendline With Data labels or number on forward forecast trendline
    By camelight in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 10-15-2015, 08:35 AM
  4. Import from SQL to Excel - formula errors
    By Stevo56 in forum Excel General
    Replies: 4
    Last Post: 03-23-2015, 04:39 AM
  5. Import from SQL to Excel - formula errors
    By Stevo56 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2015, 08:46 AM
  6. Excel formula calculation sometimes gives errors
    By palmist in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-28-2011, 02:24 PM
  7. [SOLVED] Excel Throwing Circular Errors When No Errors Exist
    By MDW in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2006, 09:20 AM

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