1. Home
  2. Functions
  3. Math
  4. BASE

BASE function

Converts a number to text in another base (radix), padded with zeros to a minimum length.

Syntax

=BASE(number, radix, [min_length])

Arguments

ArgumentRequiredDescription
numberRequiredA whole number from 0 up to 2^53
radixRequiredThe base, from 2 to 36
min_lengthOptionalThe minimum length of the result (0 to 255)

How to use BASE

BASE takes 2 required arguments and 1 optional argument. Type =BASE( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=BASE(7, 2)Result "111"
=BASE(100, 16)Result "64"
=BASE(15, 2, 10)Result "0000001111"

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.