# INTERCEPT Function

> Calculate where the linear regression line crosses the y-axis with INTERCEPT in TX Sheet Control: known_y, known_x, least squares, #N/A and #DIV/0! errors.

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

---

Return the point where the linear regression line crosses the y-axis. `known_y` and `known_x` are the dependent and the independent values, arrays or ranges of the same size, and the line is fitted by the least squares method. Arrays of different sizes return `#N/A`, and `known_x` values that are all equal return `#DIV/0!`. The catalog accepts two arguments; the third name in the syntax, `x`, is not used, and a third argument returns `#VALUE!`.

### Syntax

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

Category: Statistics. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=INTERCEPT({1,2,3},{2,4,6})
```

The formula returns 0, because the values 1, 2 and 3 lie on the line y = 0.5x, which passes through the origin.

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:** [INT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/int/llms-full.txt)
- **Next:** [INTRATE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/intrate/llms-full.txt)
