
π This article includes 1 downloadable practice file β
In this article
DECIMAL reverses BASE.
Syntax
=DECIMAL(text, radix)
| Argument | What it means |
|---|---|
radix |
2 to 36. |
Examples
Example 1
=DECIMAL("FF", 16)
255.
DECIMAL in practice
Where you will use it
- Convert base-36 codes back to numbers
- Read long binary strings
- Decode hex values
Worked example
| Text | Radix | Formula | Result |
|---|---|---|---|
| FF | 16 | =DECIMAL(A2,B2) | 255 |
| 101101 | 2 | =DECIMAL(A3,B3) | 45 |
| 2N9C | 36 | =DECIMAL(A4,B4) | 123456 |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Text with spaces or prefixes like 0x | Remove them first with SUBSTITUTE |
| Letters beyond the radix | "G" is invalid in base 16 and gives #NUM! |
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.