Excel has no built-in formula to turn a number like 1234.50 into "One Thousand Two Hundred Thirty-Four Dollars and Fifty Cents" — but you can get there in two ways: a small VBA function called SpellNumber (the classic, fully reliable method), or a workaround with formulas for very simple cases. This guide walks you through the VBA method step by step, which works in Excel for Windows and Mac but not in Excel for the web (which cannot run macros).

What You'll Need

  • Excel for Windows or Mac (desktop version — the browser version of Excel cannot run VBA macros)
  • A workbook you are allowed to save as a macro-enabled file (.xlsm)
  • Five minutes to paste in the code below — no programming knowledge needed

Step-by-Step

  1. Open the VBA editor. Press Alt + F11 on Windows (or Option + Fn + F11 on Mac). A new window called the Visual Basic Editor opens. If the shortcut does not work, go to the ribbon's Developer tab and click Visual Basic. If you don't see a Developer tab, right-click any ribbon tab and choose Customize the Ribbon, then tick Developer. Exact labels can differ slightly between Excel versions.
  2. Insert a module. In the editor's menu bar, click Insert > Module. A blank white code window appears.
  3. Paste the SpellNumber code. Copy the entire block below and paste it into that blank module:
Option Explicit

Function SpellNumber(ByVal MyNumber)
    Dim Dollars, Cents, Temp
    Dim DecimalPlace, Count
    ReDim Place(9) As String
    Place(2) = " Thousand "
    Place(3) = " Million "
    Place(4) = " Billion "
    Place(5) = " Trillion "

    MyNumber = Trim(Str(MyNumber))
    DecimalPlace = InStr(MyNumber, ".")
    If DecimalPlace > 0 Then
        Cents = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & "00", 2))
        MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))
    End If
    Count = 1
    Do While MyNumber <> ""
        Temp = GetHundreds(Right(MyNumber, 3))
        If Temp <> "" Then Dollars = Temp & Place(Count) & Dollars
        If Len(MyNumber) > 3 Then
            MyNumber = Left(MyNumber, Len(MyNumber) - 3)
        Else
            MyNumber = ""
        End If
        Count = Count + 1
    Loop

    Select Case Dollars
        Case "": Dollars = "No Dollars"
        Case "One": Dollars = "One Dollar"
        Case Else: Dollars = Dollars & " Dollars"
    End Select

    Select Case Cents
        Case "": Cents = " and No Cents"
        Case "One": Cents = " and One Cent"
        Case Else: Cents = " and " & Cents & " Cents"
    End Select

    SpellNumber = Dollars & Cents
End Function

Function GetHundreds(ByVal MyNumber)
    Dim Result As String
    If Val(MyNumber) = 0 Then Exit Function
    MyNumber = Right("000" & MyNumber, 3)
    If Mid(MyNumber, 1, 1) <> "0" Then
        Result = GetDigit(Mid(MyNumber, 1, 1)) & " Hundred "
    End If
    If Mid(MyNumber, 2, 1) <> "0" Then
        Result = Result & GetTens(Mid(MyNumber, 2))
    Else
        Result = Result & GetDigit(Mid(MyNumber, 3))
    End If
    GetHundreds = Result
End Function

Function GetTens(TensText)
    Dim Result As String
    Result = ""
    If Val(Left(TensText, 1)) = 1 Then
        Select Case Val(TensText)
            Case 10: Result = "Ten"
            Case 11: Result = "Eleven"
            Case 12: Result = "Twelve"
            Case 13: Result = "Thirteen"
            Case 14: Result = "Fourteen"
            Case 15: Result = "Fifteen"
            Case 16: Result = "Sixteen"
            Case 17: Result = "Seventeen"
            Case 18: Result = "Eighteen"
            Case 19: Result = "Nineteen"
            Case Else
        End Select
    Else
        Select Case Val(Left(TensText, 1))
            Case 2: Result = "Twenty "
            Case 3: Result = "Thirty "
            Case 4: Result = "Forty "
            Case 5: Result = "Fifty "
            Case 6: Result = "Sixty "
            Case 7: Result = "Seventy "
            Case 8: Result = "Eighty "
            Case 9: Result = "Ninety "
            Case Else
        End Select
        Result = Result & GetDigit(Mid(TensText, 2))
    End If
    GetTens = Result
End Function

Function GetDigit(Digit)
    Select Case Val(Digit)
        Case 1: GetDigit = "One"
        Case 2: GetDigit = "Two"
        Case 3: GetDigit = "Three"
        Case 4: GetDigit = "Four"
        Case 5: GetDigit = "Five"
        Case 6: GetDigit = "Six"
        Case 7: GetDigit = "Seven"
        Case 8: GetDigit = "Eight"
        Case 9: GetDigit = "Nine"
        Case Else: GetDigit = ""
    End Select
End Function
  1. Close the editor (Alt + Q, or simply click the window's close button) and return to your worksheet.
  2. Use the function like any formula. Click a blank cell and type =SpellNumber(A1), replacing A1 with the cell containing your number. Press Enter. For 1234.50 the cell shows One Thousand Two Hundred Thirty Four Dollars and Fifty Cents.
  3. Save as a macro-enabled workbook. Press F12 (or File > Save As), and in the Save as type dropdown choose Excel Macro-Enabled Workbook (*.xlsm). If you save as a plain .xlsx file, the macro is silently removed.
  4. Enable macros when you reopen the file. The first time you open it, a yellow Security Warning bar may appear under the ribbon — click Enable Content so the function can run. Only enable content for files you created yourself or fully trust.

Common Mistakes

  • Saving as .xlsx. This is the number-one failure: the formula returns a #NAME? error next time because the macro was stripped out. Always use .xlsm.
  • Pasting the code into a sheet object instead of a Module. Code must go in a standard module (Insert > Module), not into the code window for Sheet1 or ThisWorkbook, or the function will not appear in the worksheet.
  • Forgetting Enable Content. Macros are blocked by default when reopening; the yellow bar must be accepted before SpellNumber works.
  • Expecting it to work in Excel for the web or Excel mobile. Those versions cannot run VBA, so the formula shows #NAME? there.
  • Pointing it at text. If the source cell contains a number stored as text with stray spaces or currency symbols, clean it first (for example wrap it in =VALUE(TRIM(A1))).

Tips

  • Change the currency wording. Edit the strings "Dollars" and "Cents" in the pasted code to anything you like — "Euros" and "Cents", "Rupees" and "Paise", or remove them entirely for a plain number-in-words result.
  • Remove the decimals handling by deleting the lines dealing with DecimalPlace and Cents if you only want whole numbers spelled out.
  • Make it permanent across all workbooks by pasting the code into your Personal Macro Workbook (unhide PERSONAL.XLSB via the View menu's Unhide option after recording a trivial macro once). Then =SpellNumber() is available in every file.
  • Copy results as text before sending the file to someone without macros: select the formula cells, copy, then Paste Special > Values so the words stay even if the macro is removed.
  • Fill down like any formula — SpellNumber works over a whole column of amounts at once.

Troubleshooting

  • #NAME? error: the macro isn't available. Check that you saved as .xlsm, clicked Enable Content, and pasted the code into a Module (not a sheet). Retrace steps 1–3.
  • Function works but disappears after reopening: you saved in .xlsx format. Re-add the code and save as .xlsm.
  • "Sub or Function not defined" when running: only part of the code was pasted. Delete everything in the module and paste the full block again — all four functions (SpellNumber, GetHundreds, GetTens, GetDigit) are required.
  • Wrong output for a cell: the source is probably text, not a number. Check with =ISNUMBER(A1) — if it returns FALSE, convert the cell first.
  • Macros blocked entirely: your organization may disable macros via policy. Check File > Options > Trust Center > Trust Center Settings > Macro Settings (labels vary by version), and only lower restrictions for files you trust.

Frequently Asked Questions

Is there a built-in Excel formula to convert numbers to words?

No. Neither TEXT nor any other native function spells numbers out in English. VBA (as shown above) is the standard method; a few other languages have locale-specific workarounds, but English does not.

Does SpellNumber work in Excel for the web?

No. The browser version cannot run VBA macros, so the function returns #NAME? there. Use the desktop app, or paste-special the results as values before opening the file online.

Can I convert numbers to words without macros at all?

Only for very limited cases with a long, brittle chain of IF, CHOOSE and TEXT formulas — it is not practical for general amounts. For reliable results use the VBA method.

Can SpellNumber handle negative numbers?

Not by default — it spells the absolute digits without a minus. If needed, test with =IF(A1<0,"Minus "&SpellNumber(ABS(A1)),SpellNumber(A1)) in the worksheet.

Will this work for other currencies and languages?

Yes for currency labels — just edit the "Dollars"/"Cents" strings in the code. The English number words themselves are fixed; for other languages you need a version of the function written for that language.

Is pasting this macro safe?

The code above only reads the number you give it and returns text — it does not touch files, settings, or the internet. As a rule, only enable macros in files whose code you have reviewed or created yourself.