DECIMAL in Zoho Sheet: Decode Binary, Hex and Base-36 Text
Convert positional strings in base 2ā36 into decimal numbers with Zoho Sheet DECIMAL, including independent example checks.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: =DECIMAL("FF";16) has the independent mathematical expected output 255; Zoho’s official DECIMAL reference defines DECIMAL(number; radix) for taking a text representation in a chosen base and returning a decimal number. Zoho documents radix 2ā36 and case-insensitive letters. This guide uses first-party documentation and independent calculations, not formulas run in a Zoho account. Zoho DECIMAL, reviewed October 13, 2026.
DECIMAL helps when a dataset contains hexadecimal colour codes, base-2 sensor exports, octal permissions, or alphanumeric counters. A source string such as "000111" is not normally the decimal quantity one hundred eleven: in base two it equals 7. Treat original representation and converted quantity as distinct fields to avoid losing meaningful prefixes or identifiers.
Availability and version history
- Introduced: The original introduction version and date are not established by the checked sources.
- Availability: Currently documented in Zoho Sheetās rolling web-service help; no numbered release or retirement endpoint is established.
- Scope: English-language web-service documentation. Mobile and offline-client parity is outside the verified scope.
- Checked: October 14, 2026, against the official DECIMAL reference. Documentation check; not a new native test.
Exact Zoho syntax and documented arguments
=DECIMAL(number; radix)
| Parameter | Required | Zoho-documented meaning | Example |
|---|---|---|---|
number |
Yes | Text representing a number written in the requested radix. | "FF", "101010", A2. Zoho also illustrates the numeric literal 1. |
radix |
Yes | Integer from 2 to 36 inclusive selecting the number system. | 2, 8, 10, 16, 36, or cell B2. |
There is no optional sign-mode or cumulative flag. Letters beyond 9 represent the digits ten through thirty-five as the base increases. Zoho says alphabetic digits are case-insensitive, so "ff" and "FF" have the same value in base 16. Zoho lists binary, octal, decimal, hexadecimal and base-36 digit alphabets, with the corresponding valid digit ranges. Zoho DECIMAL reference.
Preserve text strings in quotation marks when typing them directly. When using A2 instead, make sure the import has not stripped significant leading zeros or converted a long identifier to scientific notation before DECIMAL reads it. Leading zeroes do not contribute to the numeric value but may matter to an external application. A formula may work numerically while still losing the original representation.
Examples with explicit outputs and proof
Zoho’s published examples confirm the function and operand order; the self-contained cases below are independently calculated by positional notation. They are marked as expected rather than native Zoho observations.
| Formula | Expected decimal number | Check |
|---|---|---|
=DECIMAL("1";2) |
1 | Zoho lists =DECIMAL(1;2) ā 1. |
=DECIMAL("101010";2) |
42 | 32 + 8 + 2. |
=DECIMAL("111";8) |
73 | 64 + 8 + 1. |
=DECIMAL("FF";16) |
255 | 15 Ć 16 + 15. |
=DECIMAL("ff";16) |
255 | Zoho’s case-insensitivity rule. |
=DECIMAL("1Z";36) |
71 | 1 Ć 36 + 35. |
=DECIMAL("000011";2) |
3 | 2 + 1. |
=DECIMAL("Z";36) |
35 | Z is the largest base-36 digit. |
=DECIMAL(BASE(255;16;4);16) |
255 | Expected round trip; nested execution not independently verified. |
For "101010", the leftmost bit is the coefficient of 2āµ. Its value is 1Ć32 + 0Ć16 + 1Ć8 + 0Ć4 + 1Ć2 + 0Ć1 = 42. The function returns an ordinary base-ten number; its numeric cell formatting is independent of which source base you selected. Zoho DECIMAL.
Reproducible worksheet exercise
Start a blank worksheet with A1 Encoded value, B1 Source base, C1 Decimal result, and D1 Manual check. Enter A2 as text 101010 and B2 as the number 2. In C2 enter =DECIMAL(A2;B2); expected C2 is 42. In D2 enter =32+8+2 to compare two independently specified paths. In row 3 use text FF and radix 16, with =DECIMAL(A3;B3) and expected 255; in row 4 use 1Z and 36, expecting 71.
These examples are reproducible without downloading a proprietary workbook or relying on hidden A3/A4 examples. If a pasted CSV automatically treats 101010 as a number, format the input cells as text and re-enter the string. Keep the listed expected values beside your inputs for a manual comparison; these expectations are not a native-execution log.
Advanced uses and common pitfalls
Hex codes in reports. Suppose a telemetry export stores byte values as 00, 0A, and FF. Keep the original text in A and use =DECIMAL(A2;16) in a calculated B column. The expected converted values are 0, 10 and 255. A single byte can represent 0ā255, but this example does not establish how Zoho deals with arbitrarily long strings. Keep byte-width validation separate, e.g., ensure original text consists of two hexadecimal symbols before conversion.
Base-36 SKU serials. The pair 1Z decodes to 71. If multiple systems produce alphanumeric serials, explicitly agree on the alphabet and whether the identifiers are case sensitive. Zoho’s DECIMAL comparison is case-insensitive, so "a" and "A" will decode identically; do not use that to distinguish two different case-sensitive identity tokens. Converting a string to a number will also discard its visible leading padding, so retain original codes.
Round-trip conversions. Zoho BASE encodes a number as positional text. Compare =DECIMAL(BASE(A2;16);16) against A2 for suitable nonnegative integer test data. Independent arithmetic expects equality for 0, 42, 255 and 1295. Do not extend that promise to arbitrary floating-point values, extremely large inputs or unsupported signed formats until Zoho-native tests and the actual documented numeric limits are known.
Signed binary warning. DECIMAL("1111111111";2) is an unsigned positional interpretation: mathematically 1023. In contrast, Zoho’s BIN2DEC documentation shows a negative 10-bit case, consistent with signed binary conventions. These functions therefore must not be described as interchangeable for every 10-bit string. The 1023 expectation is independently calculated; the precise signed BIN2DEC boundary cases still require a Zoho worksheet run. Zoho BIN2DEC.
Documented errors and troubleshooting
| Issue | What Zoho establishes | Action |
|---|---|---|
=DECIMAL("2";2) |
#NUM! when a digit falls outside the base’s permitted alphabet. |
Correct the code or the radix; do not silently coerce 2 into binary. |
Radix 1, 37, or not an integer |
Zoho requires integer radix 2ā36 and lists inappropriate radix as #NUM!. |
Validate B2 before running the formula. |
#NAME! |
Zoho’s generic table includes function misspelling and text values missing quotes. | Check spelling and whether FF was typed as "FF". |
#VALUE! |
Wrong argument data type is a documented general error. | Check imported text, number versus text, and source cells. |
#REF! |
Invalid references are identified in the generic error glossary. | Repair deleted or renamed reference cells. |
#N/A! |
Zoho lists this general spreadsheet error, not a special decoding result. | Inspect the referenced input for upstream errors. |
| Base-ten result seems to have no leading zeroes | A returned decimal number is not an identifier string. | Store an unconverted source string in a separate column. |
| Value from another app differs on unusual prefixes | Current Zoho article does not specify every whitespace/prefix/coercion rule. | Test the actual input in native Zoho and record any discrepancy. |
The documented error list is broader than the circumstances proved for any one formula; it must not be interpreted as a complete internal error precedence specification. Official DECIMAL error table.
Compatibility and Excel comparison without substituting evidence
Official Zoho: public English help covers cloud function syntax, case-insensitivity, valid radix and examples. Independent calculation: all extra example values and positional proofs in this guide. Native product testing: zero executions in Zoho Sheet, Android, iOS or Excel. The documentation reviewed does not provide a first-supported Zoho version, account-tier entitlement or numeric-precision limit for DECIMAL.
Microsoft’s Excel DECIMAL article lists additional length and precision constraints for Excel. Those are Excel-only evidence, not permission to assign Zoho an identical 255-character maximum or 2āµĀ³ precision guarantee. Formula delimiters and display locales also differ by settings; Zoho’s documented syntax uses semicolons, and its locale settings page documents decimal and grouping options.
Zoho publishes generic mobile function-entry guidance, but that is not function-by-function mobile parity certification. Web insertion guide; Android formulas; iOS formulas. Related official function pages: BASE, BIN2DEC, DEC2BIN. Checked 2026-10-13.