# FORECAST Function

> Predict a value on a linear trend with the FORECAST formula function of TX Sheet Control: known x and y values, ignored text, #N/A and #DIV/0! errors.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > FORECAST Function
- **239 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast/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. FORECAST is the older name of [FORECAST.LINEAR](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-linear/llms-full.txt) and calculates the same result. Arrays of different sizes return `#N/A`, and `known_x` values without variance return `#DIV/0!`.

### Syntax

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

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

Available for supported offline calculation.

### Examples

```text
=FORECAST(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:** [FLOOR.PRECISE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/floor-precise/llms-full.txt)
- **Next:** [FORECAST.ETS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/forecast-ets/llms-full.txt)
