LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Get Value of Equation on Chart

Alex -

Is your chart a line chart? It will calculate these parameters based on
pseudo X values of {1,2,3,4,5,...}. If your true X values increment by
1, but start far away from 1, your slope will be right but the intercept
will be a mile off. Is your first X value close to 2000?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
http://PeltierTech.com/Excel/Charts/
_______

Alex A wrote:

I used the two functions slope and Intercept but for some
reason the intercept is coming out wrong.

M = Application.WorksheetFunction.Slope(Range("e25:e28 "),
Range("c25:c28"))

b = Application.WorksheetFunction.Intercept(Range
("e25:e28"), Range("c25:c28"))

The label on the graph shows
y = 14484x + 562698

my slope is 14483.664 (good)
my intercept is -28390146.1562596 (bad)

Thoughts?:
One cell range has the Excel Number datatype
and the other cell range is the Excel Currency datatype



 
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
What's equation for R-Squared value given for chart trendlines? Sarah Charts and Charting in Excel 4 October 29th 07 12:39 PM
I cannot display all the poly equation constants on the chart. daz Charts and Charting in Excel 4 October 17th 07 04:29 PM
make chart based on equation Daniel Charts and Charting in Excel 7 August 12th 07 03:33 PM
How to calculate something using equation from Chart' directly? pujiyono Excel Worksheet Functions 1 August 16th 06 02:21 PM
Can you chart an equation (y=mx+b)? Adam Charts and Charting in Excel 2 December 16th 05 05:06 AM


All times are GMT +1. The time now is 10:11 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"