
π This article includes 1 downloadable practice file β
In this article
BASE converts to any base from 2 to 36 and handles much bigger numbers than DEC2BIN.
Syntax
=BASE(number, radix, [min_length])
| Argument | What it means |
|---|---|
radix |
2 to 36. |
Examples
Example 1
=BASE(255, 2)
11111111.
Example 2
=BASE(ROW(), 36, 4)
Short 4-character IDs like 00A7.
BASE in practice
Where you will use it
- Write numbers in binary or hex for bit masks
- Generate short codes in base 36
- Teach number systems
Worked example
| Number | Radix | Formula | Result |
|---|---|---|---|
| 255 | 2 | =BASE(A2,B2) | 11111111 |
| 255 | 16 | =BASE(A3,B3) | FF |
| 123456 | 36 | =BASE(A4,B4) | 2N9C |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Expecting leading zeros | Add the min_length argument: BASE(5,2,8) gives 00000101 |
| Negative numbers | BASE accepts only 0 or more |
Related functions
π Part of the free Excel course: Beginner β Expert Β· Try it in the Formula Lab or ask the AI Helper.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
π Practice files for this article
- πPractice workbook: Engineering & conversion15 tasks on realistic sales data β type your formula, the Check column turns green when it is right. Answers sheet included.β¬ XLSX Β· 34 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βBuild this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.