The Google Sheets function ROMAN is designed to convert standard numeric values into their Roman numeral equivalents. This function is particularly useful in scenarios where you want to display numbers in a traditional or decorative format, such as in certain types of invoices or creative documents.
Syntax
ROMAN(number, [form])
- number: This is the numeric value that you want to convert into Roman numerals.
- form (optional): This parameter determines the type of Roman numeral representation. A value of 0 or omitted returns a standard numeral, while values from 1 to 4 can provide increasingly simplified formats.
Example #1
=ROMAN(1994)
The function converts the number 1994 into Roman numerals, resulting in MCMXCIV.
Example #2
=ROMAN(3, 1)
This invocation will convert the number 3 into Roman numerals with a simplified version, yielding III with fewer symbols.
Example #3
=ROMAN(2023, 4)
Here, the function converts the year 2023 into Roman numerals, resulting in MMXXIII while applying the least decorative form.
Error handling
- VALUE!: This error occurs if the input number is not numeric or out of range; ensure you are using a valid number between 1 and 3999.
- NUM!: This error shows when the number specified is greater than 3999. Roman numerals traditionally represent values up to a maximum of 3999.