This article was previously published under Q211967
The equation displayed for a trendline on an xy (scatter) chartis incorrect. When you manually substitute values for the x variable,Microsoft Excel then plots the trendline incorrectly.
Note The trendline formula should only be used when your chart is an XY Scatter chart. This chart plots both the X axis and the Y axis as values. Line, Column, and Bar charts plot only the Y axis as values. The X axis is plotted only as a linear series in these chart types, regardless of what the labels actually are. Therefore, the trendline will be inaccurate if displayed on these types of charts. This behavior is by design.
Microsoft Excel plots trendlines correctly. However, theequation that is displayed may give incorrect results when you manuallytype x values. For appearance, each x value is rounded in the number ofsignificant digits that are displayed in the chart. This behavior allows the equation to occupy less space in the chart area. However, the accuracy of the chart is significantly reduced, which can cause a trend to appear to be incorrect.
To work around this behavior, increase the digits in the trendline equationby increasing the number of decimal places that are displayed. To do this,follow these steps:
In the chart, select the trendline equation.
On the Format menu, click Selected Data Labels.
Click the Number tab, and then click Number in the Category list.
In the Decimal places box, increase the number of decimal places to 30 so that you can see all the decimal places.
match different XL97 XL2000 XL2002 XL2003 XL98 XL2001 XLX XL2004