Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
kafoury123
 
Posts: n/a
Default trendline equation extract

i have a group of charts drawn with trendlines , i have the equations of
these trendlines shown on the charts, question is :how can i extract the
trendline function displayed on the chart and use it on another routine...
i.e. i want the code that calls the trendline function equation... if there
is such thing??..please help! "vb6"
  #2   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

You can generally get the equations from the LINEST and/or LOGEST
worksheet functions. Alternately, David Braden has posted VBA code to
extract the coefficients directly from the chart into cells

http://groups.google.com/groups?selm....microsoft.com

In some instances the chart trendline coefficients will be more accurate
than LINEST/LOGEST. However, to do accurate calculations based on the
coefficients displayed on the chart, you have to display those
coefficients in scientific notation with 14 decimal places, otherwise
you may loose accuracy due to rounding.

Jerry

kafoury123 wrote:

i have a group of charts drawn with trendlines , i have the equations of
these trendlines shown on the charts, question is :how can i extract the
trendline function displayed on the chart and use it on another routine...
i.e. i want the code that calls the trendline function equation... if there
is such thing??..please help! "vb6"


  #4   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

You should try viewing this page from Netscape as well as IE. As
currently coded, most of the equations are illegible in Netscape.

Jerry

Tushar Mehta wrote:

You may also want to look at an (incomplete) article:
Trendline coefficients
http://www.tushar-mehta.com/excel/ti...efficients.htm


  #5   Report Post  
kafoury123
 
Posts: n/a
Default

thanks alot jerry

"Jerry W. Lewis" wrote:

You can generally get the equations from the LINEST and/or LOGEST
worksheet functions. Alternately, David Braden has posted VBA code to
extract the coefficients directly from the chart into cells

http://groups.google.com/groups?selm....microsoft.com

In some instances the chart trendline coefficients will be more accurate
than LINEST/LOGEST. However, to do accurate calculations based on the
coefficients displayed on the chart, you have to display those
coefficients in scientific notation with 14 decimal places, otherwise
you may loose accuracy due to rounding.

Jerry

kafoury123 wrote:

i have a group of charts drawn with trendlines , i have the equations of
these trendlines shown on the charts, question is :how can i extract the
trendline function displayed on the chart and use it on another routine...
i.e. i want the code that calls the trendline function equation... if there
is such thing??..please help! "vb6"





  #6   Report Post  
Tushar Mehta
 
Posts: n/a
Default

Hi Jerry,

Actually, my browser of choice is Firefox and until your post I hadn't
viewed the page with IE. In the former the equations appear bold but
are otherwise legible. In the latter the equations appear normal.

FWIW, the original is a Word document that was exported as a web page
from within Word. The equations are Equation Editor objects. I will
see if the MS tool that removes Office specific code from a web page
improves the quality of the display.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
You should try viewing this page from Netscape as well as IE. As
currently coded, most of the equations are illegible in Netscape.

Jerry

Tushar Mehta wrote:

You may also want to look at an (incomplete) article:
Trendline coefficients
http://www.tushar-mehta.com/excel/ti...efficients.htm


  #7   Report Post  
Jerry W. Lewis
 
Posts: n/a
Default

You're welcome. Glad it helped.

Jerry

kafoury123 wrote:

thanks alot jerry


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rounding in Trendline Equation Phil Hageman Charts and Charting in Excel 3 January 15th 05 01:15 AM
Logarithmic Trendline Equation Phil Hageman Charts and Charting in Excel 2 January 13th 05 11:55 AM
Code Post: Extract Trendline coefficients who Excel Discussion (Misc queries) 2 January 10th 05 11:36 PM
How do I write a trendline constant into a cell? Hanbotkot Charts and Charting in Excel 2 December 31st 04 05:27 PM
How do I get the trendline equation from Excel to script? Mattias Charts and Charting in Excel 1 December 7th 04 12:21 PM


All times are GMT +1. The time now is 11:20 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"