logo
excelfunctions.org
bookmarks

LINEST

Returns the parameters of a linear trend.

StatisticalStatistics & Analysis

What it does

Calculates statistics for a line using the 'least squares' method.

Syntax

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

Arguments

  • known_y's(range) β€” Dependent values.
  • known_x's(range) β€” Independent values.

Examples

Linear Regression

Calculate slope (m) and intercept (b).

FORMULA
=LINEST(B2:B4, A2:A4)
RESULT
[2, 0]
SAMPLE DATA
AB
1XY
212
324
436