Excel TREND Function

This Excel Tutorial demonstrates how to use the Excel TREND Function in Excel to calculate y-values based on a trendline, with formula examples.

TREND Function Description:

The TREND Function Calculates Y values based on a trendline for given X values. The trendline is calculated Using the least squares method based on two data series.

Formula Examples:

trend function examples

ExampleFormulaResult
1=TREND($B$5:$B$10,$C$5:$C$10,E5)6
2=TREND($B$5:$B$10,$C$5:$C$10,E6)7
3=TREND($B$5:$B$10,$C$5:$C$10,E7)8
4=TREND($B$5:$B$10,$C$5:$C$10,E8)9
5=TREND($B$5:$B$10,$C$5:$C$10,E9,F9)9
6=TREND($B$5:$B$10,$C$5:$C$10,E10,F10)7.69230769230769

Syntax and Arguments:

The Syntax for the TREND Formula is:

Function Arguments ( Inputs ):

known_y’s – An array of known Y values.

known_x’s – An array of known X values.

new_x’s – An array of new X values that you want TREND to return corresponding Y values for.

const – OPTIONAL. Logical value indicating whether to calculate B (the intercept in y = mx + b) using the least squares method (TRUE Or Ommitted) or to manually set B = 0 (FALSE).

Additional Notes

The TREND Function is an array function. To use array functions, enter the formula in the range of cells that you wish to calculate, select all the cells, press F2 to go into Cell Edit Mode, and press CTRL + SHIFT + ENTER.

TREND Examples in VBA

You can also use the TREND function in VBA. Type:
application.worksheetfunction.trend(known_ys,known_xs,new_xs,const)
For the function arguments (known_y’s, etc.), you can either enter them directly into the function, or define variables to use instead.

Return to the List of all Functions in Excel

How to use the TREND Function in Excel:

To use the AND Excel Worksheet Function, type the following into a cell:
=AND(
After entering it in the cell, notice how the AND formula inputs appear below the cell:
trend formula syntax
You will need to enter these inputs into the function. The function inputs are covered in more detail in the next section. However, if you ever need more help with the function, after typing “=TREND(” into a cell, without leaving the cell, use the shortcut CTRL + A (A for Arguments) to open the “Insert Function Dialog Box” for detailed instructions:
how to use the trend function in excel

For more information about the TREND Formula visit the
Microsoft Website.

ADS GO HERE

Posted in