Formualizer Docs

ARABIC

Converts a Roman numeral string to its Arabic numeric value.

The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.

Syntax

=ARABIC(text)

Arguments

ArgumentTypeRequiredDefault
textanyRequired—

Remarks

  • Accepts text input containing Roman symbols (I,V,X,L,C,D,M).
  • Surrounding whitespace is trimmed.
  • Empty text returns 0.

Error cases

  • Invalid Roman syntax returns #VALUE!.

Examples

Convert a Roman numeral that includes subtractive notation.

Formula =ARABIC("XIV")

Expected result 14

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Test lowercase Roman letters.

Formula =ARABIC("xiv")

Expected result 14

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Convert a zero-length text input.

Formula =ARABIC("")

Expected result 0

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

A character outside the Roman alphabet invalidates the input.

Formula =ARABIC("XYZ")

Expected result #VALUE!

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Roman to Arabic

Formula =ARABIC("MCMXCIX")

Expected result 1999

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

Trimmed input

Formula =ARABIC(" XLIV ")

Expected result 44

Try this formula

This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.

FAQ

What causes ARABIC to return #VALUE!?

Invalid Roman symbols/syntax, non-text input, or overlength text produce #VALUE!.

Implementation

Engine source

On this page