Help and Support

Chart trendline formula is inaccurate in Excel

Article ID:211967
Last Review:January 24, 2007
Revision:4.4
This article was previously published under Q211967

SYMPTOMS

The equation displayed for a trendline on an xy (scatter) chart is 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.

Back to the top

CAUSE

Microsoft Excel plots trendlines correctly. However, the equation that is displayed may give incorrect results when you manually type x values. For appearance, each x value is rounded in the number of significant 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.

Back to the top

WORKAROUND

To work around this behavior, increase the digits in the trendline equation by increasing the number of decimal places that are displayed. To do this, follow these steps:
1.In the chart, select the trendline equation.
2.On the Format menu, click Selected Data Labels.
3.Click the Number tab, and then click Number in the Category list.
4.In the Decimal places box, increase the number of decimal places to 30 so that you can see all the decimal places.
5.Click OK.

Back to the top


APPLIES TO
Microsoft Office Excel 2003
Microsoft Excel 2002 Standard Edition
Microsoft Excel 2000 Standard Edition
Microsoft Excel 97 Standard Edition
Microsoft Excel 2004 for Mac
Microsoft Excel X for Mac
Microsoft Excel 2001 for Mac
Microsoft Excel 98 for Macintosh

Back to the top

Keywords: 
kbchart kbprb KB211967

Back to the top

Article Translations

 

Other Support Options

  • Need More Help?
    Contact a Support professional by Email, Online or Phone.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.