< Back

ARABIC function

Tue Jul 16, 2019 12:46 pm

ARABIC function



This article describes the formula syntax and usage of the ARABIC function in Microsoft Excel.



Description Converts a Roman numeral to an Arabic numeral.



Syntax ARABIC( text ) The ARABIC function syntax has the following arguments.
  • Text Required. A string enclosed in quotation marks, an empty string (""), or a reference to a cell containing text.


Remarks
  • If Text is not a valid value, ARABIC returns the #VALUE! error value.
  • Values that return a #VALUE! error value include numbers, dates, and text that is not a valid Roman numeral.
  • If an empty string ("") is used as an input value, 0 is returned.
  • The maximum length of the argument is 255 characters. Therefore, the largest number that can be returned is 255,000.
  • The case of the text argument is ignored. For example, "mxmvii" evaluates to the same result (1997) as "MXMVII" .
  • Although a negative Roman number is non-standard, evaluation of a negative Roman numeral is supported. Insert the negative sign before the Roman text, such as "-MMXI."
  • Leading and trailing spaces are ignored.
  • The ARABIC function performs the opposite action of the ROMAN function. See ROMAN function for more information.
Example Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.


Formula


Description


Result


=ARABIC("LXIV")


Returns an Arabic number based on the Roman number LXIV (64).


64


=ARABIC("-LXIV")


Returns an -ve Arabic number based on the Roman number LXIV (64).


-64


=ARABIC(A5)


Returns an Arabic number based on a Roman number in cell A5 (2015).


2015


MMXV