+ Reply to Thread
Results 1 to 2 of 2

Extract Equation from Trendline

Hybrid View

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    Miami
    MS-Off Ver
    Excel 2010
    Posts
    42

    Extract Equation from Trendline

    Hi,

    Does anyone know if it is possible to extract the equation from a trend line? What I would like to do is the following:

    1. Graph a bunch of data points
    2. Add a trend line and display the equation on the chart (for example: Y = 3X+5)
    3. Link cells in the spreadsheet to the equation (for example: cell A1 = 3 and cell B1 = 5)

    The first 2 steps are easy, becuase there are standard excel tools to do that. the third step is what I'm not so sure.

    The idea would be to have the value in the cells change, if the data being trended also changes.

    Would anyone know if there is some VBA code that can do this?

    thanks!

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Extract Equation from Trendline

    no VBA code.
    Use functions (well, if you wish so, you can always use application.worksheetfunction.....):
    Formula: copy to clipboard
    SLOPE
    and
    Formula: copy to clipboard
    INTERCEPT
    Best Regards,

    Kaper

+ 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. Replies: 3
    Last Post: 03-06-2011, 01:38 PM
  3. Extract equation from the chart trendline
    By snoopyngd in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-08-2011, 10:52 AM
  4. Trendline equation
    By Deladier in forum Excel General
    Replies: 6
    Last Post: 02-03-2010, 04:53 PM
  5. trendline equation extract
    By kafoury123 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 03-19-2005, 10:06 PM

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