# BASE function

This article describes the formula syntax and usage of the BASE function (function: A prewritten formula that takes a value or values, performs an operation, and returns a value or values. Use functions to simplify and shorten formulas on a worksheet, especially those that perform lengthy or complex calculations.) in Microsoft Excel.

## Description

Converts a number into a text representation with the given radix (base).

## Syntax

`BASE(Number, Radix [Min_length])`

The BASE function syntax has the following arguments.

• Number    Required. The number that you want to convert. Must be an integer greater than or equal to 0 and less than 2^53.
• Radix    Required. The base radix that you want to convert the number into. Must be an integer greater than or equal to 2 and less than or equal to 36.
• Min_length    Optional. The minimum length of the returned string. Must be an integer greater than or equal to 0.

## Remarks

• If Number, Radix, or Min_length are outside the minimum or maximum constraints, BASE returns the #NUM! error value.
• If Number is a non-numeric value, BASE returns the #VALUE! error value.
• Any non-integer number entered as an argument is truncated to an integer.
• If the Min_length argument is included, leading zeros are added to the result if the result would otherwise be shorter than the minimum length specified. For example, BASE(16,2) returns 10000, but BASE(16,2,8) returns 00010000.
• The maximum value of the Min_length argument is 255.

## Example

The workbook below shows examples of this function. Inspect them, change existing formulas, or enter your own formulas to learn how the function works.

To work more in-depth with the example data in Excel, download the embedded workbook to your computer, and then open it in Excel.

Applies to:
Excel 2013, Excel Online