ROMAN
Converts an Arabic number to a Roman numeral string.
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
=ROMAN(number, [form])
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number | number | Required | — |
form | number | Optional | — |
Return type
Can return text.
Remarks
- Accepts integer values in the range
0..=3999. 0returns an empty string.- Optional
formcontrols output compactness (0classic through4simplified).
Error cases
- Out-of-range values return
#VALUE!.
Examples
Convert a decimal integer to the default Roman numeral form.
Formula =ROMAN(1999)
Expected result MCMXCIX
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?.
Choose the shortest supported form.
Formula =ROMAN(1999,4)
Expected result MIM
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 the smallest positive integer.
Formula =ROMAN(1)
Expected result I
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?.
The input exceeds the supported upper bound.
Formula =ROMAN(4000)
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?.
Another conversion
Formula =ROMAN(44)
Expected result XLIV
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?.
Related functions
FAQ
What input range does ROMAN support?
ROMAN accepts truncated integers from 0 through 3999; outside that range it returns #VALUE!.