+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 trendline equation

  1. #1
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    225

    Excel 2007 trendline equation

    i have two sets of data:


    data set A (y axis)
    1.741326284
    1.754947994
    1.601505882
    1.811138187
    1.769036304
    1.955898021
    1.832408567
    1.892568598
    2.142371601


    and

    data set B (x axis)
    11.70%
    11.00%
    8.80%
    11.00%
    9.30%
    10.30%
    10.30%
    11.30%


    there is a slight correlation (0.5041 r^2)
    and a linear trendline gave the equation:

    y = 8.7686x + 0.8923

    is there a way i can display this equation without having to graph it? the data changes frequently enough that it becomes inconvenient to have to do this by hand each time. anybody have any insight?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Excel 2007 trendline equation

    y = mx +b where m = slope and b = intercept. Excel has Functions to define both so you could put into a cell
    ="y = " & SLOPE(y values, x values) &"x + " & INTERCEPT(y values, x values)
    You might want to use the ROUND function (or TEXT Function) around SLOPE and INTERCEPT to reduce digiits.
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

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

    Re: Excel 2007 trendline equation

    The formula =LINEST(Y, X) array-entered into a 5x2 range (e.g., A1:B5) will give you the slope, offset, and 8 other parameters of the fit, but the data must have the same number of X and Y values (you have 8 and 9 respectively).
    Entia non sunt multiplicanda sine necessitate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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