Google Sheets BASE Function: Syntax, Examples & Tips

The BASE function converts a number into a specified base (2 to 36), returning it as a text string for easier readability in different numeral systems.
Google Sheets
BASE(value, base, [min_length])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is a BASE Google Sheets Formula?
  3. A Practical Example
  4. BASE Formula
  5. Result of the Formula
  6. Why Use BASE?
  7. Key Takeaways:
  8. Example use case

Parameters

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.

What is a BASE Google Sheets Formula?

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.

A Practical Example

Imagine you are working on a project that requires you to convert decimal numbers into binary format for a computer science assignment.

Decimal Numbers Table:

Decimal Number
10
15
20

You want to convert these decimal numbers into their binary equivalents.

BASE Formula

To achieve this, you would use the BASE function as follows:

Google Sheets
=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).

Result of the Formula

When you apply the BASE formula to the Decimal Numbers Table, the output would look like this:

Decimal NumberBinary Equivalent
101010
151111
2010100

As you can see, the decimal numbers have been successfully converted into their binary equivalents.

Why Use BASE?

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.

Key Takeaways:

  • BASE: A Google Sheets function that converts a number from one base to another.
  • Versatile: Can convert numbers to various bases, including binary, octal, decimal, and hexadecimal.
  • Simplifies Calculations: Eliminates the need for manual base conversion, making it easier to work with different numeral systems.
  • Common Use Cases: Ideal for computer science assignments, programming tasks, and any scenario where base conversions are necessary.

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!

Example use case

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.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.