LINEST function
the parameters of a linear trend.
Statistical
Where can you use it?
Analytics, quality and research teams. Use this group to examine distributions, variability or relationships in measurements, sales or service durations.
Scenario in the workbook
Read the slope from the first element of the linear regression output. The intercept is a separate element.
A worked example from the workbook
| Row | A | B | C |
|---|---|---|---|
| 6 | Period | Observation | Forecast period |
| 7 | 1 | 2 | 4 |
| 8 | 2 | 4 | 5 |
| 9 | 3 | 6 | 6 |
Record 1
=INDEX(LINEST($B$7:$B$9,$A$7:$A$9),1,1)Expected result2
See the inputs and instructions for all 3 examplesCopyable formulas
English Excel · en-US
=INDEX(LINEST($B$7:$B$9,$A$7:$A$9),1,1)Turkish Excel · tr-TR
=İNDİS(DOT($B$7:$B$9;$A$7:$A$9);1;1)Worked examples
Read the slope from the first element of the linear regression output. The intercept is a separate element.
Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.
| Row | A | B | C |
|---|---|---|---|
| 6 | Period | Observation | Forecast period |
| 7 | 1 | 2 | 4 |
| 8 | 2 | 4 | 5 |
| 9 | 3 | 6 | 6 |
| Case | Formula | Expected result |
|---|---|---|
| Record 1 | =INDEX(LINEST($B$7:$B$9,$A$7:$A$9),1,1) |
2 |
| Record 2 | =INDEX(LINEST($B$7:$B$9,$A$7:$A$9),1,1) |
2 |
| Record 3 | =INDEX(LINEST($B$7:$B$9,$A$7:$A$9),1,1) |
2 |