Finance

Charts

Statistics

Macros

Search

Converting Between Roman and Arabic Numerals in VBA Excel

The worksheet functions Roman() and Arabic() are used to convert between conventional Arabic numbers and Roman numerals. Note that the Arabic() function was introduced only in Excel 2013.

The following example converts the number 1984 to the Roman numeral text « MCMLXXXIV » and then converts it back:

Sub RomanArabic()
    MsgBox WorksheetFunction.Roman(1984)
    MsgBox WorksheetFunction.Arabic("MCMLXXXIV")
End Sub

 

0 0 votes
Évaluation de l'article
S’abonner
Notification pour
guest
0 Commentaires
Le plus ancien
Le plus récent Le plus populaire
Online comments
Show all comments
Facebook
Twitter
LinkedIn
WhatsApp
Email
Print
0
We’d love to hear your thoughts — please leave a commentx