You are on page 1of 3

Spreadsheet Page Excel Tips: Chart Trendline Formulas

http://spreadsheetpage.com/index.php/tip/chart_trendline_formulas/

J-Walk & Associates, Inc.

Home

Books

Products

Tips

Downloads

Resources

Blog

Support

Search

Excel Tips
Excel has a long history, and it continues to evolve and change. Consequently, the tips provided here do not necessarily apply to all versions of Excel. In particular, the user interface for Excel 2007 (and later), is vastly different from its predecessors. Therefore, the menu commands listed in older tips, will not correspond to the Excel 2007 (and later) user interface.

Chart Trendline Formulas


Category: Formulas / Charts & Graphics | [Item URL]

When you add a trendline to a chart, Excel provides an option to display the trendline equation in the chart. This tip describes how to create formulas that generate the trendline coefficients. You can then use these formulas to calculate predicted y values for give values of x. These equations assume that your sheet has two named ranges: x and y.

Linear Trendline
Equation: y = m * x + b m: =SLOPE(y,x) b: =INTERCEPT(y,x)

All Tips
List all tips, by category Browse all tips

Logarithmic Trendline
Equation: y = (c * LN(x)) + b c: =INDEX(LINEST(y,LN(x)),1) b: =INDEX(LINEST(y,LN(x)),1,2)

Browse Tips by Category


General Formatting Formulas Charts & Graphics Printing General VBA CommandBars & Menus UserForms VBA Functions

Power Trendline
Equation: y=c*x^b c: =EXP(INDEX(LINEST(LN(y),LN(x),,),1,2)) b: =INDEX(LINEST(LN(y),LN(x),,),1)

Exponential Trendline

1 of 3

30/06/2011 5:33 PM

Spreadsheet Page Excel Tips: Chart Trendline Formulas

http://spreadsheetpage.com/index.php/tip/chart_trendline_formulas/

Search for Tips


Search:

Equation: y = c *e ^(b * x) c: =EXP(INDEX(LINEST(LN(y),x),1,2)) b: =INDEX(LINEST(LN(y),x),1)

Advanced Search

2nd Order Polynomial Trendline


Equation: y = (c2 * x^2) + (c1 * x ^1) + b c2: =INDEX(LINEST(y,x^{1,2}),1) C1: =INDEX(LINEST(y,x^{1,2}),1,2) b = =INDEX(LINEST(y,x^{1,2}),1,3)

Tip Books
Needs tips? Here are two books, with nothing but tips:

3rd Order Polynomial Trendline


Equation: y = (c3 * x^3) + (c2 * x^2) + (c1 * x^1) + b c3: =INDEX(LINEST(y,x^{1,2,3}),1) c2: =INDEX(LINEST(y,x^{1,2,3}),1,2) C1: =INDEX(LINEST(y,x^{1,2,3}),1,3) b: =INDEX(LINEST(y,x^{1,2,3}),1,4)

Higher Order Polynomial Trendline


Contains more than 200 useful tips and tricks for Excel 2007 | Other Excel 2007 books | Amazon link: John Walkenbach's Favorite Excel 2007 Tips & Tricks

Notice the pattern in the two preceding sets of formulas.

Contains more than 200 useful tips and tricks for Excel | Other Excel 2003 books | Amazon link: John Walkenbach's Favorite Excel Tips & Tricks

Copyright 2011, J-Walk & Associates, Inc. This site is not affiliated with Microsoft Corporation.

2 of 3

30/06/2011 5:33 PM

Spreadsheet Page Excel Tips: Chart Trendline Formulas

http://spreadsheetpage.com/index.php/tip/chart_trendline_formulas/

Privacy Policy

3 of 3

30/06/2011 5:33 PM

You might also like