The DECIMAL function converts a number in a known base into its decimal number equivalent. For example, the DECIMAL function can convert the binary number 1101 into the decimal number 13. The number provided to DECIMAL should be a text string.
The DECIMAL function takes two arguments: number and radix. Number should be the text representation of a number in a known base. Radix is the number of digits used to represent numbers (i.e. the base) and should be an integer between 2 and 36. The characters given in number need to conform to the numbering system specified with radix.
In the hexadecimal number system, the number 255 is represented as "FF". To convert the text string "FF" to the decimal number 255, you can use the DECIMAL function like this:
As the formula is copied down, the DECIMAL function converts each number in column B to its decimal equivalent using the base specified in column C for the radix argument. The decimal numbers in column D are the output from DECIMAL.
The BASE function performs the opposite conversion as the DECIMAL function: