Excel LINEST Function

This post will guide you how to use the LINEST function with syntax and examples in Microsoft excel.

Description

The Excel LINEST function calculates the statistics for a line by using the “least squares” method to calculate a straight line that best fits your data, and then returns an array that describes the line. So you can use the LINEST function to get the statistical information on the line of best fit based on the existing y-values and x-values in Excel.

The LINEST function will use the following line equation:

y = mx + b
y = m1x1 + m2x2 + ... + b

The LINEST function is a build-in function in Microsoft Excel and it is categorized as a Statistical Function.

The LINEST function is available in Excel 2016, Excel 2013, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000, Excel 2011 for Mac.

Syntax

The syntax of the LINEST function is as below:

=LINEST (known_y's, known_x's, [const], [stats])

Where the LINEST function arguments are:

  • known_y’s -This is a required argument.  An array of known y-values from the line equation.
  • known_x’s – This is an optional argument.  An array of known x-values from the line equation.
  • const – This is an optional argument.  A logical values used to determine whether the constant b is equal to 0. And If the Const argument is equal to TRUE or omitted, the Constant b is calculated. Otherwise, the constant b is set to 0.
  • Stats – This is an optional argument.  A logical value used to determine whether the function need to return additional regression statistics. If this argument is TRUE, the LINEST function will return additional regression statistics, otherwise, The LINEST function will return only the m-coefficients and the constant b.

Excel LINEST Function Examples

The below examples will show you how to use Excel LINEST Function to calculate the statistical information on the line of best fit you data.

#1 to calculate the statistical for a straight line through the existing y-values and x-values, using the following formula:

=LINEST(A1:A3,B1:B3,TRUE,FALSE)

excel linest examples1

Related Posts

Excel DVAR Function
excel dvar examples1

This post will guide you how to use Excel DVAR function with syntax and examples in Microsoft excel. Description The Excel DVAR Function will get the variance of a population based on a sample of numbers in a column in ...

Excel DSUM Function
excel dsum examples1

This post will guide you how to use Excel DSUM function with syntax and examples in Microsoft excel. Description The Excel DSUM Function will add the numbers in a column or database that meets a given criteria. And so you ...

Excel DSTDEVP Function
excel dstdevp examples1

This post will guide you how to use Excel DSTDEVP function with syntax and examples in Microsoft excel. Description The Excel DSTDEVP returns the standard deviation of a population based on the entire population of numbers in a column or ...

Excel DSTDEV Function
excel dstdev examples1

This post will guide you how to use Excel DSTDEV function with syntax and examples in Microsoft excel. Description The Excel DSTDEV returns the standard deviation of a population based on a sample of numbers in a column or database ...

Excel DMIN Function
excel dmin function example1

This post will guide you how to use Excel DMIN function with syntax and examples in Microsoft excel. Description The Excel DMIN returns the minimum value from a database or a column of a list that matches the specified conditions. ...

Excel DPRODUCT Function
excel dproduct examples1

This post will guide you how to use Excel DPRODUCT function with syntax and examples in Microsoft excel. Description The Excel DPRODUCT returns the product of values from a set of records that match criteria that you specify. The DPRODUCT ...

Excel XIRR Function
excel xirr examples1

This post will guide you how to use Excel XIRR function with syntax and examples in Microsoft excel. Description The Excel XIRR function returns the internal rate of return for a series of cash flows that is not necessarily periodic. ...

Excel VDB Function
excel vdb examples1

This post will guide you how to use Excel VDB function with syntax and examples in Microsoft excel. Description The Excel VDB function calculates the depreciation of an asset for a specified period based on the double declining balance method. ...

Excel SYD Function
excel syd examples1

This post will guide you how to use Excel SYD function with syntax and examples in Microsoft excel. Description The Excel SYD function calculates the sum-of-years’digits depreciation of an asset for a specified period. And it will return a numeric ...

Excel SLN Function
excel sln examples1

This post will guide you how to use Excel SLN function with syntax and examples in Microsoft excel. Description The Excel SLN function calculates the depreciation of an asset for one period based on the straight line depreciation. And it ...

Sidebar