BASE(value, base, [min_length])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
value:
The number that you want to convert to a different base.
base:
The base to which you want to convert the value. This must be an integer between 2 and 36.
min_length:
(Optional) The minimum length of the resulting string. If the converted value is shorter than this length, it will be padded with leading zeros.
The BASE function in Google Sheets is a useful tool that allows you to convert a number from one base to another. It can be particularly handy when working with different numeral systems, such as binary, octal, decimal, and hexadecimal. The BASE function simplifies the process of converting numbers, making it easier to work with data that requires different base representations.
In simpler terms, the BASE function allows you to take a number and express it in a different base, which can be useful in various mathematical and programming contexts.
Imagine you are working on a project that requires you to convert decimal numbers into binary format for a computer science assignment.
| Decimal Number |
|---|
| 10 |
| 15 |
| 20 |
You want to convert these decimal numbers into their binary equivalents.
To achieve this, you would use the BASE function as follows:
=BASE(A2, 2)In this formula:
A2 is the cell containing the decimal number you want to convert.2 is the base to which you want to convert the number (in this case, binary).When you apply the BASE formula to the Decimal Numbers Table, the output would look like this:
| Decimal Number | Binary Equivalent |
|---|---|
| 10 | 1010 |
| 15 | 1111 |
| 20 | 10100 |
As you can see, the decimal numbers have been successfully converted into their binary equivalents.
The BASE function is beneficial because it simplifies the process of converting numbers between different bases. It eliminates the need for manual calculations and provides a straightforward way to handle numeral systems. This can be particularly useful for students, programmers, and anyone working with data that requires base conversions.
The BASE function is an essential tool for anyone working with numbers in Google Sheets, providing a powerful way to enhance data manipulation and analysis capabilities.
Happy spreadsheeting!
You have a table where Column A lists product IDs and Column B contains their prices. Use the BASE formula to convert product IDs from base 10 to base 2, allowing for easy categorization and analysis of product data in binary format for tech-related projects.
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.