# MDETERM Function

> Calculate the determinant of a square matrix with the MDETERM formula function of TX Sheet Control: square numeric arrays, the #VALUE! error and an example.

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

---

Return the matrix determinant of an array. `array_or_dimension` is a square numeric array or range, with as many rows as columns. A non-square array, or an array with text or empty cells, returns `#VALUE!`.

### Syntax

```text
MDETERM(array_or_dimension, array2)
```

Category: Math. Minimum arguments: 1. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=MDETERM({1,2;3,4})
```

The formula returns -2, which is 1 × 4 − 2 × 3.

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:** [MAXIFS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/maxifs/llms-full.txt)
- **Next:** [MDURATION Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/mduration/llms-full.txt)
