DECIMAL(value, base)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
value:
The number you want to convert from a specified base to decimal.
base:
The base of the number system for the value. This must be an integer between 2 and 36.
The DECIMAL function in Google Sheets is a useful tool that converts a number in a given base (radix) to its decimal (base 10) equivalent. This function is particularly handy when working with numbers in different numeral systems, such as binary (base 2), octal (base 8), or hexadecimal (base 16).
In simpler terms, the DECIMAL function allows you to take a number represented in a different base and convert it into a standard decimal format that is easier to understand and work with.
Imagine you are working with a list of binary numbers and you want to convert them into decimal numbers for easier calculations:
| Binary Number |
|---|
| 1010 |
| 1101 |
| 1111 |
You want to convert these binary numbers into their decimal equivalents.
To achieve this, you would use the DECIMAL function as follows:
=DECIMAL(A2, 2)In this formula:
A2 is the cell containing the binary number you want to convert.2 is the base of the number system you are converting from (in this case, binary).When you apply the DECIMAL formula to the Binary Numbers Table, the output would look like this:
| Binary Number | Decimal Equivalent |
|---|---|
| 1010 | 10 |
| 1101 | 13 |
| 1111 | 15 |
The DECIMAL function is beneficial because it simplifies the process of converting numbers from different bases into a format that is universally understood. This can be particularly useful in fields such as computer science, engineering, and mathematics, where different numeral systems are frequently used.
The DECIMAL function is an essential tool for anyone working with different numeral systems in Google Sheets, providing a straightforward way to enhance data analysis and calculations.
Happy spreadsheeting!
You have a table where Column A contains binary numbers. You can use the DECIMAL formula to convert these binary values into their decimal equivalents in Column B. This simplifies data analysis and enhances readability for numerical computations.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.