Contact

ARABIC Function (OpenOffice Calc)

Math Intermediate OpenOffice Calc

Use OpenOffice ARABIC for Roman-numeral labels, with tested lowercase and simplified forms, empty-input behavior and a deliberate classical-spelling check.

Verification status: Eight reference formulas and 8 diagnostic cases were recalculated in Apache OpenOffice 4.1.16 on Linux x86-64, Build 9816, using generated native ODF and GUI hard recalculation. Saved formula identities and typed results were checked; the load warning is described below. How formula examples are checked

Quick answer: =ARABIC("XLII") returned 42 in the tested Apache OpenOffice 4.1.16 build.

Availability and version history

  • Introduced: First release not established; documented by OpenOffice.org 3.3.
  • Supported in: Apache OpenOffice 4.1.16; this identifies a verified release, not a final supported version.
  • Scope: Desktop Calc, English function names and semicolon-separated formulas.
  • Checked: October 14, 2026. Eight reference formulas and the listed diagnostics were recalculated from generated native ODF in 4.1.16 on Linux x86-64, Build 9816. Source and independent reference calculations were also checked.

What ARABIC returns

ARABIC converts Roman-numeral text to a numeric value. Its accepted notation includes lowercase input and several simplified forms, so a successful conversion is broader than a test for strict classical spelling. The ordinary value at XIV is 14. Release entry.

Syntax and arguments

=ARABIC(Text)

Supply one text argument, either a quoted string or a cell reference. The routine converts ASCII letters to uppercase and checks Roman-symbol order and permitted remaining value. It accepts the empty string as zero. Ordinary decimal digit characters and punctuation are not Roman symbols.

Reproducible examples

The native column records the saved 4.1.16 results. The independent values use high-precision mathematics; displayed decimals are rounded to twelve places. Integer results remain exact in these small cases.

Formula Native 4.1.16 result Independent reference
=ARABIC("I") 1 1
=ARABIC("IV") 4 4
=ARABIC("IX") 9 9
=ARABIC("XLII") 42 42
=ARABIC("XCIX") 99 99
=ARABIC("MMXXVI") 2026 2026
=ARABIC("MMMCMXCIX") 3999 3999
=ARABIC("mcmxcix") 1999 1999

Practical worksheet

For Roman-numbered front matter, retain labels in column A and use =ARABIC(A2) in column B. Sorting the numeric helper puts IX before X and XI without relying on alphabetic ordering. Keep the original label so the displayed notation remains available.

If blanks mean “not supplied,” use =IF(A2="";"Missing";IFERROR(ARABIC(A2);"Invalid")). This avoids silently assigning a page number of zero to a missing label. A separate error message is more useful than replacing every conversion failure with zero.

Advanced interpretation and checks

The native cases accept IL as 49, IC as 99 and IIII as 4. Therefore “ARABIC returned a number” does not mean the source was written in classical notation. Conversely, the parser still rejects some strings composed entirely of Roman letters, including VV, MMMM and IVIV.

To normalize an accepted nonempty value, =ROMAN(ARABIC(A2)) produces Calc’s default Roman spelling. With IIII, the result is IV; with IL, it is XLIX. The number is unchanged, but the spelling is standardized.

A stricter rule can compare UPPER(A2) with that normalized spelling, using EXACT and an IFERROR wrapper. For a rule requiring nonempty labels, reject empty input before making the comparison. This defines validation against Calc’s default classical output rather than claiming to judge every historical writing convention.

Boundaries and troubleshooting

The empty-string result is zero, but the text character "0" is outside the Roman parser’s symbol set. Do not confuse those inputs. Surrounding spaces are not automatically trimmed by this routine; the tested "X " errors. If trimming is part of a deliberate cleaning policy, perform it separately and retain the original label. The parser’s ceiling and ordering rules also mean that permissive simplified notation is not unrestricted repetition.

These additional formulas were recalculated from the same generated ODF input. Error displays are retained as errors, even when an ODS numeric attribute stores zero.

Formula Observed result or error
=ARABIC("IL") 49
=ARABIC("IC") 99
=ARABIC("IIII") 4
=ARABIC("VV") Err:502
=ARABIC("MMMM") Err:502
=ARABIC("") 0
=ARABIC("X ") Err:502
=ARABIC("IVIV") Err:502

Official evidence and checking scope

The generated ODF input produced the informational load warning “Not all attributes could be read.” After it was acknowledged, the sheet was hard-recalculated and saved separately. Every formula identity, input label and tested result was reconciled, including repeated spaces represented with ODF text elements. This does not certify every style attribute. The separately prepared XLSX input was not executed. A deliberately stale SUM cache changed from 999999 to 3, and an uncached SUM returned 7 after hard recalculation. Native evidence covers the eight reference formulas and listed diagnostics only. Other explanatory compositions are independent mathematical checks; other releases, locales and extreme-value behavior were not established by this run.