+ Reply to Thread
Results 1 to 5 of 5

Obtaining the slope from a chart's trend line

  1. #1
    Registered User
    Join Date
    03-18-2010
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2003
    Posts
    11

    Obtaining the slope from a chart's trend line

    On an XY (scatter) chart, I can make a trend line via right click on the line and select "Add trend line".

    Are there formulas that will give me the left and right y values of the trend line?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Obtaining the slope from a chart's trend line

    Welcome to the forum.

    You can use LINEST to get the slope and intercept of the trend line, and then use formulas that use the min and max x values to get the y values for the endpoints.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-18-2010
    Location
    Jacksonville, FL
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Obtaining the slope from a chart's trend line

    Thanks, I'll check into LINEST.

  4. #4
    Registered User
    Join Date
    03-16-2010
    Location
    Rogersville Tennessee
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Obtaining the slope from a chart's trend line

    If the equation of the line is in y = mx + b, and you are displaying the equation already, you have what you need for the slope of the line. Just use arctan(m/ to determine the slope. Are you looking for the offsets normal to the theoretical line from there? I have an application where I am doing something similar, and use: cos(Ye-Ya) where Ye is the expected Y for a given X, and Ya is the actual Y. Hope this helps.

    My issue is getting this offset line to graph in the scatter plot along with the existing chart. Any advice there?

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Obtaining the slope from a chart's trend line

    castabya,

    I you have a question, please start your own thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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