Sample Data
Monthly sales data for five months, with months in column A and sales numbers in column B.
| Cell | Value |
|---|---|
| A1 | Month |
| B1 | Sales |
| A2 | Jan |
| B2 | 100 |
| A3 | Feb |
| B3 | 120 |
| A4 | Mar |
| B4 | 90 |
| A5 | Apr |
| B5 | 150 |
| A6 | May |
| B6 | 130 |
Monthly sales data for five months, with months in column A and sales numbers in column B.
| Cell | Value |
|---|---|
| A1 | Month |
| B1 | Sales |
| A2 | Jan |
| B2 | 100 |
| A3 | Feb |
| B3 | 120 |
| A4 | Mar |
| B4 | 90 |
| A5 | Apr |
| B5 | 150 |
| A6 | May |
| B6 | 130 |
LINEST(B2:B6, {1,2,3,4,5}, TRUE, TRUE)A B +-------+-------+ 1 | Month | Sales | +-------+-------+ 2 | Jan | 100 | 3 | Feb | 120 | 4 | Mar | 90 | 5 | Apr | 150 | 6 | May | 130 | References: - B2:B6 for sales values - A2:A6 converted to numbers 1-5 for months
A B C +-------+-------+---------+ 1 | Month | Sales | Formula | +-------+-------+---------+ 2 | Jan | 100 | 104 | 3 | Feb | 120 | 113 | 4 | Mar | 90 | 122 | 5 | Apr | 150 | 131 | 6 | May | 130 | 140 | Line chart plots Sales (B2:B6) vs Month (A2:A6 as numbers 1-5). The formula column shows predicted sales from the line: Sales ≈ 9*MonthNumber + 95.