# CONVERT Function

> Convert numbers between units of length, mass, temperature or time with CONVERT in TX Sheet Control: case-sensitive unit names, prefixes and #N/A.

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

---

Convert a number from one unit of measurement to another. `number` is the value in `from_unit`, and `to_unit` is the unit of the result. Unit names are case-sensitive, such as "mi" and "km" for length, "lbm" and "kg" for mass, "C" and "F" for temperature or "hr" and "mn" for time. Metric prefixes such as "k" or "M" and binary prefixes such as "ki" can precede a unit. An unknown unit, or units of different quantities such as length and mass, return `#N/A`.

### Syntax

```text
CONVERT(number, from_unit, to_unit)
```

Category: Engineering. Minimum arguments: 3. Maximum arguments: 3.

Available for supported offline calculation.

### Examples

```text
=CONVERT(1,"mi","km")
```

The formula returns 1.609344, the number of kilometers in a mile.

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:** [CONFIDENCE.T Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/confidence-t/llms-full.txt)
- **Next:** [CORREL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/correl/llms-full.txt)
