ARABIC function

ARABIC converts Roman numeral text strings to their equivalent Arabic number values for calculation and sorting.

=ARABIC(text)

Generate a ARABIC formula

Describe what you need. The generator will reach for ARABIC where ARABIC is the right tool, and tell you when it is not.

How to get a better answer
  • Name your columns by letter and by header: "column F (Net Value)" beats "the amount column".
  • State every condition, including the negatives — "not cancelled" changes the formula's shape.
  • Say where the data starts if it is not row 1, and whether it will grow.
  • Check the settings above match your spreadsheet: the wrong argument separator is a syntax error on your machine.

Arguments

How ARABIC reads its arguments
textrequiredARABIC
ArgumentRequiredDescription
textRequiredRequired. A text string containing a valid Roman numeral (I, II, III, IV, V, X, L, C, D, M, etc.). Invalid text, empty strings, or malformed numerals return #VALUE!.

Returns

Returns a number representing the Arabic numeral equivalent of the input Roman numeral text.

Availability

Excel: All · Google Sheets: Supported

Worked examples

1. Extract order batch sequence number from Order ID

Order IDRegionRepUnitsUnit PriceOrder Date
Order-IEastAlice5252024-01-15
Order-IIWestBob8302024-04-20
Order-IIINorthCarol12222024-07-10
Order-IVSouthDave3502024-10-05
=ARABIC(MID(A2,7,4))

Result: 1

MID(A2,7,4) extracts starting at character 7 from 'Order-I', yielding 'I'. ARABIC converts 'I' to the number 1. For the complete dataset, this extracts batch numbers 1, 2, 3, and 4, enabling you to sort or filter orders numerically even though they're internally stored with Roman numeral notation.

2. Calculate regional sales tier from Region code

Order IDRegionRepUnitsUnit PriceOrder Date
1001EastIAlice5252024-01-15
1002WestIIBob8302024-04-20
1003NorthIIICarol12222024-07-10
1004SouthIVDave3502024-10-05
=ARABIC(RIGHT(B2,1))*100

Result: 100

RIGHT(B2,1) extracts the last character 'I' from 'EastI'. ARABIC('I') returns 1, multiplied by 100 to get tier value 100. This pattern automatically scales: WestII = tier 200, NorthIII = tier 300, SouthIV = tier 400. You can now apply tier-based pricing, discounts, or commissions without hard-coded lookups.

3. Extract quarter from date code and group by fiscal period

Order IDRegionRepUnitsUnit PriceOrder Date
1001EastAlice5252024-Q-I
1002WestBob8302024-Q-II
1003NorthCarol12222024-Q-III
1004SouthDave3502024-Q-IV
=ARABIC(MID(F2,6,2))

Result: 1

MID(F2,6,2) extracts positions 6–7 from '2024-Q-I', giving 'I'. ARABIC converts 'I' to 1, representing Q1. Across all rows, this yields quarter numbers 1, 2, 3, 4. This lets you group and aggregate sales by quarter numerically without text matching, supporting pivot tables, charts, and conditional analysis by fiscal period.

Common errors

Which ARABIC error are you seeing?
ARABIC returned an error#VALUE!
Verify input contains only valid Roman numerals: I, V, X, L, C, D, M in proper sequence. Correct 'IIII' to 'IV', 'IXA' to 'IX'. Use MID or TRIM to isolate just the numeral portion if embedded in longer text.
#VALUE!
Ensure the input contains at least one valid Roman numeral character. Use IFERROR to handle blanks: =IFERROR(ARABIC(A2),0) to substitute 0 or another default value when the cell is empty.
#VALUE!
Extract only the Roman numeral portion using text functions. For example, use MID and FIND to isolate the letter sequence before passing to ARABIC: =ARABIC(MID(A2,1,2)) if you know the numeral position.
ErrorWhy it happensHow to fix it
#VALUE!The input contains invalid Roman numerals, such as 'IIII' (should be 'IV'), 'VV' (should be 'X'), or non-Roman characters like 'IXZ' or 'ABC'.Verify input contains only valid Roman numerals: I, V, X, L, C, D, M in proper sequence. Correct 'IIII' to 'IV', 'IXA' to 'IX'. Use MID or TRIM to isolate just the numeral portion if embedded in longer text.
#VALUE!The input is an empty string or contains only whitespace, which ARABIC cannot convert to a number.Ensure the input contains at least one valid Roman numeral character. Use IFERROR to handle blanks: =IFERROR(ARABIC(A2),0) to substitute 0 or another default value when the cell is empty.
#VALUE!The input mixes Roman numerals with Arabic numerals or special characters, such as 'X5', '2-III', or 'I.V', which don't form a valid Roman numeral.Extract only the Roman numeral portion using text functions. For example, use MID and FIND to isolate the letter sequence before passing to ARABIC: =ARABIC(MID(A2,1,2)) if you know the numeral position.

Tips and when to use something else

  • Use ROMAN() to reverse the conversion: transform Arabic numbers back to Roman numerals. Example: =ROMAN(4) returns 'IV'. This is useful for generating report headers or exporting data in classical notation.
  • ARABIC is case-insensitive; both 'iv' and 'IV' convert to 4, making it flexible for mixed-case data sources.
  • Combine ARABIC with text functions like MID, FIND, LEFT, RIGHT, or TRIM when Roman numerals are embedded in longer strings such as 'Order-III' or 'East-II-Sales'.
  • For priority systems, tier codes, or sequential batches that use Roman numerals, consider storing raw Arabic numbers instead to reduce conversion overhead; ARABIC is most valuable when inheriting legacy data or external feeds that deliver Roman numerals.

Frequently asked questions

How do I convert an Arabic number back to Roman numerals?
Use the ROMAN() function, which performs the reverse operation. For example, =ROMAN(4) returns 'IV' and =ROMAN(1990) returns 'MCMXC'. This is essential for generating classical references, book chapters, or reports that require Roman numeral formatting.
Does ARABIC accept lowercase Roman numerals like 'iv' or 'mcm'?
Yes, ARABIC is case-insensitive. Both 'iv' and 'IV' return 4, and 'mcm' and 'MCM' both return 1900. The function treats uppercase and lowercase as equivalent.
What's the maximum value ARABIC can convert?
ARABIC supports Roman numerals up to 3,999 (MMMCMXCIX). Larger values require vinculum notation (a bar over numerals), which standard spreadsheets don't directly support. For numbers exceeding 3,999, use Arabic numerals in calculations instead of Roman numerals.
What happens if I pass a number instead of text to ARABIC?
ARABIC expects a text string. Passing a pure number like 4 typically returns #VALUE! or may trigger auto-conversion in some spreadsheet applications. To be safe, wrap numeric sources with TEXT(): =ARABIC(TEXT(A1,"0")).

Need a different formula?

The full generator is not scoped to one function — describe any spreadsheet problem and it will pick.

Open the formula generator

Reviewed 2026-09-17