# CONVERT

engineering · from excel · excel: not yet compared · sheets: not yet compared

converts number between measurement units

## signature

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

returns: `number`

## arguments

- number: number — required
- from_unit: text — required
- to_unit: text — required

## examples

formula and result, asserted in the engine test suite.

| formula | result | with |
| --- | --- | --- |
| `=CONVERT(100, "km", "mi")` | `62.13711922373339` | — |

## errors

error values observed from the engine — each with a call that produces it.

| error | produced by |
| --- | --- |
| `#N/A` | `=CONVERT(1, 2, 2)` |

## related

- [BESSELI](https://deepcalc.com/functions/besseli.md) — returns modified Bessel function In(x)
- [BESSELJ](https://deepcalc.com/functions/besselj.md) — returns Bessel function Jn(x)
- [BESSELK](https://deepcalc.com/functions/besselk.md) — returns modified Bessel function Kn(x)
- [BESSELY](https://deepcalc.com/functions/bessely.md) — returns Bessel function Yn(x)
- [BIN2DEC](https://deepcalc.com/functions/bin2dec.md) — converts binary number to decimal
- [BIN2HEX](https://deepcalc.com/functions/bin2hex.md) — converts binary number to hexadecimal
- [BIN2OCT](https://deepcalc.com/functions/bin2oct.md) — converts binary number to octal
- [BITAND](https://deepcalc.com/functions/bitand.md) — returns bitwise AND of two numbers

## navigate

- [all engineering functions](https://deepcalc.com/functions/engineering-functions.md)
- [function index](https://deepcalc.com/functions.md) — all 600 functions
- [error values](https://deepcalc.com/errors.md) · [concepts](https://deepcalc.com/concepts.md) · [limits](https://deepcalc.com/limits.md)
- [everything in one file](https://deepcalc.com/llms-full.txt)

source: https://deepcalc.com/functions/convert