Engineering
All versions
◉ 2 views
=DEC2OCT()
Converts a decimal number to octal.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=DEC2OCT(number, [places])
Hover argument names in the table for details.
Output typeNumber/Text
Popularity45 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon
▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =DEC2OCT() 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 decimal integer you want to convert. If number is negative, places is ignored and DEC2OCT returns a 10-character (30-bit) octal number in which the most significant bit is the sign bit. The remaining 29 bits are magnitude bits. Negative numbers are represented using two's-complement notation. |
places |
Number | Optional | The number of characters to use. If places is omitted, DEC2OCT uses the minimum number of characters necessary. Places is useful for padding the return value with leading 0s (zeros). |
▣ Examples
تبدیل عدد دهدهی ۵۸ به اکتال
=DEC2OCT(58, 3)
تبدیل عدد دهدهی به اکتال
=DEC2OCT(-100)
✦ Tips
- If places is not an integer, it is truncated.
⚠ Common Errors
#NUM!
If number < -536,870,912 or if number > 536,870,911, DEC2OCT returns the #NUM! error value. If DEC2OCT requires more than places characters, it returns the #NUM! error value. If places is negative, DEC2OCT returns the #NUM! error value.
Fix: An allowed number
#VALUE!
If number is nonnumeric, DEC2OCT returns the #VALUE! error value. If places is nonnumeric, DEC2OCT returns the #VALUE! error value.
Fix: برای number و places مقدار عددی وارد کنید.
💬 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!