# N Function

> Convert a value to a number with the N formula function of TX Sheet Control: numbers and dates unchanged, logical values as 1 or 0, text as 0 and errors.

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

---

Convert a value to a number. A number, or a date, which is a serial number, is returned as it is, TRUE becomes 1 and FALSE 0, and text becomes 0. An error value is returned unchanged.

### Syntax

```text
N(value)
```

Category: Information. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=N(42)
```

The formula returns 42.

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:** [MUNIT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/munit/llms-full.txt)
- **Next:** [NA Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/na/llms-full.txt)
