# FORECAST.LINEAR Function

> Predict a value on the linear trend of known data with FORECAST.LINEAR in TX Sheet Control: known x and y values, ignored text and the #DIV/0! error.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > FORECAST.LINEAR Function
- **213 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-linear/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-linear/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-linear/llms-full.txt

---

Predict a value on the linear trend of known data. `x` is the point to predict, `known_y` the dependent values and `known_x` the independent values; pairs with a text value are ignored. Arrays of different sizes return `#N/A`, and `known_x` values without variance return `#DIV/0!`.

### Syntax

```text
FORECAST.LINEAR(x, known_y, known_x)
```

Category: Statistics. Minimum arguments: 3. Maximum arguments: 3.

Available for supported offline calculation.

### Examples

```text
=FORECAST.LINEAR(4,{2,4,6},{1,2,3})
```

The formula returns 8: the known values follow y = 2x, so the prediction for x = 4 is 8.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [FORECAST.ETS.STAT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-ets-stat/llms-full.txt)
- **Next:** [FORMULATEXT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/formulatext/llms-full.txt)
