Math & Trig
Excel 2013
◉ 37 views
=BASE()
Converts a number into a text representation with the given radix (base).
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=BASE(Number, Radix [Min_length])
Hover argument names in the table for details.
Output typeText
Popularity6 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =BASE() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
number |
Number | Required | The number that you want to convert. Must be an integer greater than or equal to 0 and less than 2^53. |
radix |
Number | Required | The base radix that you want to convert the number into. Must be an integer greater than or equal to 2 and less than or equal to 36. |
min_length |
Number | Optional | The minimum length of the returned string. Must be an integer greater than or equal to 0. |
▣ Examples
Converts the decimal number 7 to base 2 (binary). Result is 111.
=BASE(7,2)
Result:
111
Converts the decimal number 100 to base 16 (hexadecimal). The result is 64.
=BASE(100,16)
Result:
64
Converts the decimal number 15 to base 2 (binary), with a minimum length of 10. The result is 0000001111, which is 1111 with 6 leading zeros to make the string 10 characters long.
=BASE(15,2,10)
Result:
0000001111
§ Remarks
- If Number, Radix, or Min_length are outside the minimum or maximum constraints, BASE returns the #NUM! error value.
- If Number is a non-numeric value, BASE returns the #VALUE! error value.
- Any non-integer number entered as an argument is truncated to an integer.
- If the Min_length argument is included, leading zeros are added to the result if the result would otherwise be shorter than the minimum length specified. For example, BASE(16,2) returns 10000, but BASE(16,2,8) returns 00010000.
- The maximum value of the Min_length argument is 255.
✦ Tips
- Any non-integer number entered as an argument is truncated to an integer.
- If the Min_length argument is included, leading zeros are added to the result if the result would otherwise be shorter than the minimum length specified. For example, BASE(16,2) returns 10000, but BASE(16,2,8) returns 00010000.
- The maximum value of the Min_length argument is 255.
⚠ Common Errors
#NUM!
If Number, Radix, or Min_length are outside the minimum or maximum constraints, BASE returns the #NUM! error value.
Fix: Correct the input value
#VALUE!
If Number is a non-numeric value, BASE returns the #VALUE! error value.
Fix: آرگومان عدد را بررسی کنید و مطمئن شوید مقدار عددی وارد شده و ارجاعها خالی یا متنی نیستند.
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!