# SEC Function

> Return the secant of an angle in radians with the SEC formula function of TX Sheet Control: syntax, the #VALUE! error for text and an example with its result.

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

---

Return the secant of an angle given in radians. The secant is 1 divided by the cosine of `number`. A `number` that is not numeric returns `#VALUE!`.

### Syntax

```text
SEC(number)
```

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

Available for supported offline calculation.

### Examples

```text
=SEC(0.5)
```

The formula returns 1.1394939273, the secant of 0.5 radians.

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:** [SEARCHB Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/searchb/llms-full.txt)
- **Next:** [SECH Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sech/llms-full.txt)
