TX Sheet Control

BASE Function

Function

Convert a number to its text representation in another base (radix). number is a whole number from 0 up to 2^53 (exclusive); decimals are truncated. radix is the base, from 2 to 36, with the letters A to Z as the digits above 9. min_length pads the result with leading zeros to at least that many characters, up to 255. Values outside these ranges return #NUM!.

Syntax

BASE(number, radix, min_length)

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

Available for supported offline calculation.

Examples

=BASE(31,16)

The formula returns 1F, 31 in hexadecimal.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also