Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
What's equation for R-Squared value given for chart trendlines? | Charts and Charting in Excel | |||
I cannot display all the poly equation constants on the chart. | Charts and Charting in Excel | |||
make chart based on equation | Charts and Charting in Excel | |||
How to calculate something using equation from Chart' directly? | Excel Worksheet Functions | |||
Can you chart an equation (y=mx+b)? | Charts and Charting in Excel |