To convert a numeric amount into its written English form (e.g., 123.45 → "One Hundred Twenty-Three Dollars and Forty-Five Cents") in Excel, you need either a custom VBA function or the newer TEXTSPLIT/TEXTJOIN method—Excel does not natively support this, but it is achievable with reliable methods.
What You'll Need
- Microsoft Excel installed (Excel 2016 or later recommended for TEXTSPLIT/TEXTJOIN; earlier versions require VBA)
- Basic familiarity with Excel cells, formulas, and the Developer tab
- A numeric value (e.g., in cell A1) you want to convert
- Enabled macros (only if using the VBA method)
Step-by-Step
- Prepare your data
- Enter your numeric amount in a cell (e.g., type
1234.56in cell A1). - Ensure the cell is formatted as a number (not text) and contains no commas or currency symbols beyond the standard decimal point.
- Enter your numeric amount in a cell (e.g., type
- Choose a method You have two practical options: the VBA method (works in all Excel versions) or the formula-only method (requires Excel 365 or Excel 2021 with dynamic arrays). We recommend the VBA method for broad compatibility.
- VBA Method (recommended for most users)
- Press
Alt + F11to open the Visual Basic for Applications editor. - In the left pane, right-click on VBAProject (YourWorkbook) > Insert > Module.
- Paste the following complete function into the blank module window:
- Press
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
Dollars = Left(MyNumber, DecimalPlace - 1)
Cents = Right(MyNumber, Len(MyNumber) - DecimalPlace)
Cents = Left(Cents & "00", 2)
Else
Dollars = MyNumber
Cents = "00"
End If
Count = 1
Do While Dollars <> ""
Temp = GetHundreds(Right(Dollars, 3))
If Temp <> "" Then
If Count = 1 Then
SpellNumber = Temp & Place(Count) & SpellNumber
Else
SpellNumber = Temp & Place(Count) & SpellNumber
End If
End If
If Len(Dollars) > 3 Then
Dollars = Left(Dollars, Len(Dollars) - 3)
Else
Dollars = ""
End If
Count = Count + 1
Loop
Select Case SpellNumber
Case ""
SpellNumber = "Zero Dollars"
Case "One"
SpellNumber = "One Dollar"
Case Else
SpellNumber = SpellNumber & " Dollars"
End Select
Select Case Cents
Case "00"
SpellNumber = SpellNumber & " and Zero Cents"
Case "01"
SpellNumber = SpellNumber & " and One Cent"
Case Else
SpellNumber = SpellNumber & " and " & GetTens(Cents) & " Cents"
End Select
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 = Trim(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"
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"
End Select
If Val(Right(TensText, 1)) <> 0 Then
Result = Result & " " & GetDigit(Right(TensText, 1))
End If
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
- Close the VBA editor and return to Excel.
- In a new cell (e.g., B1), enter the formula
=SpellNumber(A1). - Press
Enter—the result will display the amount in words (e.g., "One Thousand Two Hundred Thirty-Four Dollars and Fifty-Six Cents"). - Save your workbook as .xlsm (Excel Macro-Enabled Workbook) to preserve the function for future use.
Formula-Only Method (Excel 365/2021+)
- Ensure your Excel supports dynamic arrays (e.g., Excel 365 or Excel 2021).
- Enter this array formula in cell B1 (adjust cell references as needed):
=LET(num,A1, dollars,INT(num), cents,ROUND((num-dollars)*100,0), d1,CHOOSE({1,2,3,4,5,6,7,8,9},"One","Two","Three","Four","Five","Six","Seven","Eight","Nine"), d10,CHOOSE({1,2,3,4,5,6,7,8,9},"Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"), d20,CHOOSE({1,2,3,4,5,6,7,8,9},"Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"), h,CHOOSE({1,2,3},"Hundred","Thousand","Million"), f1,IF(dollars=0,"Zero",TEXTJOIN(" ",TRUE,TEXTSPLIT(TEXT(dollars,"[>999999999]#,##0;[>999999]#,##0;#,##0"),",",TRUE),"Dollars")), f2,IF(cents=0,"Zero Cents",TEXTJOIN(" ",TRUE,CHOOSE(INT(cents/10)+1,"","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"),CHOOSE(MOD(cents,10)+1,"","One","Two","Three","Four","Five","Six","Seven","Eight","Nine"),"Cents")), f1&" and "&f2) - Press
Enter—note this simplified formula handles up to millions and may require customization for larger values.
Common Mistakes
- Entering text (e.g., "$1,234") instead of a pure number—Excel cannot parse currency symbols or commas in the SpellNumber function.
- Forgetting to save as .xlsm after adding VBA—Excel will disable macros on next open unless trusted.
- Typing the function name incorrectly (case-insensitive, but misspelled like "SpellNumber" vs. "SpellNumber").
- Using the formula-only method in older Excel versions—TEXTSPLIT and LET are not available before Excel 365/2021.
- Not handling decimals properly—ensure cents are two digits (e.g., 05 not 5) for accurate "Five Cents" output.
Tips
- Format the output cell with a custom number format to align with invoices (e.g., wrap the SpellNumber formula in
="Amount: "&SpellNumber(A1)). - Use
=ROUND(A1,2)before passing to SpellNumber to avoid floating-point errors (e.g., 123.450000001). - For multiple cells, copy the SpellNumber function down without rewriting—drag the fill handle.
- Test with edge cases: 0, 1, 100, 1000, 1000000, and decimals like 0.01 or 99.99.
- Keep a backup copy—VBA code is stored in the file and can be accidentally deleted.
Troubleshooting
- Error #NAME?—This means Excel does not recognize the function name. Verify the VBA module was inserted correctly, macros are enabled (File > Options > Trust Center > Trust Center Settings > Macro Settings > Enable all macros), and you saved as .xlsm.
- Wrong amount (e.g., missing "and")—Double-check the VBA code for trailing spaces or missing quotes. Re-paste the function if needed.
- Formula works once, then returns 0—The cell may have been cleared or converted to text. Re-enter the original number and reapply the formula.
- Formula returns #VALUE!—The input cell contains text or non-numeric characters. Use
=VALUE(A1)or clean the data first with=TRIM(SUBSTITUTE(A1,"$","")). - Function does not appear in dropdown—Custom functions do not show in the formula autocomplete—just type
=SpellNumber(manually.
Frequently Asked Questions
Does this work in Excel Online?
No—the VBA method does not work in Excel Online or mobile apps. Only the formula-only method works if your Excel Online supports dynamic arrays, but even then, custom functions are not supported. For Excel Online, convert the number in desktop Excel first and save, or use Power Automate.Can I convert to other currencies or languages?
Yes, but you must modify the VBA code manually (e.g., change "Dollars" to "Euros" or adjust digit mappings for French or German). There is no built-in multilingual support—custom coding is required.Does this handle negative numbers?
The provided VBA function does not support negatives. To add this, wrap the input inABS(MyNumber) and prepend "Negative" if the original value was negative (e.g., add IF(MyNumber<0,"Negative ","") at the start of the function).
What’s the largest number this can spell?
The VBA function handles up to trillions (999,999,999,999,999). For larger numbers, extend thePlace array with "Quadrillion", "Quintillion", etc., and adjust the loop logic accordingly.
Can I apply conditional formatting to highlight large amounts?
Yes—use the cell containing the original number (A1) for conditional formatting rules, not the SpellNumber cell. The text result is not numeric and cannot be used in conditional formatting directly.Is this compatible with Excel on Mac?
Yes—the VBA code works identically on Mac Excel (2016 or newer). Open the VBA editor withFn + Alt + F11 (or Option + Command + F11 on newer keyboards), insert the module, and paste the code.