Function Problems

Convert Numbers to Words in Excel With a SpellNumber Function

Emma BrownEmma Brown Nov 25, 2026 912 views

Question details

The user wants to convert numeric values into words in Excel using a SpellNumber formula.

Convert Numbers to Words in Excel With a SpellNumber Function
Product
Microsoft Excel
Device & OS
not provided
Scenario
Display numbers as written words in a worksheet, potentially including currency or decimal values.
Observed behavior
Excel does not provide a built-in SpellNumber worksheet function; a custom function or add-in must be installed to use that function name.
Before you start

Use desktop Excel if you plan to create a VBA function, and decide whether the result should include currency, decimals, or a particular language. Only use macro code or add-ins from sources you trust.

Solution 1Recommended

Create a SpellNumber Function With VBA

Use a custom VBA function when you want to convert cell values to words within a macro-enabled workbook.

Microsoft provides a sample SpellNumber function in its guidance on converting numeric values to English words. Review and adapt the sample for your currency, decimal, and language requirements before using it.

1
Find the sample function

Open Microsoft's guidance at https://support.microsoft.com/kb/213360 and locate the sample SpellNumber VBA code.

2
Add a VBA module

Open the workbook in desktop Excel, open the Visual Basic Editor from the Developer tab, and choose Insert > Module. Paste the sample function into the module.

3
Save as a macro-enabled workbook

Choose File > Save As and select Excel Macro-Enabled Workbook (*.xlsm) so the VBA function is retained.

4
Use the function

Return to the worksheet and enter =SpellNumber(A1) in a cell, replacing A1 with the cell containing your number. If prompted, enable macros only after confirming you trust the workbook and its code.

5
Check the wording

Compare the result with the value in A1, including any currency and decimal wording. Edit the VBA code in the module if the sample's output does not meet your needs.

Create a SpellNumber Function With VBA
Macro support: VBA functions require a compatible desktop version of Excel and enabled macros. Excel for the web cannot run VBA macros.
Free Microsoft Office alternative

Work With Excel Spreadsheets in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easy to move everyday workbook tasks between applications. It does not install or fix Excel's SpellNumber function.

Open and edit Microsoft Excel XLS and XLSX filesWork with numeric data and common spreadsheet formulasUse a familiar interface for a smoother move from Microsoft OfficeAccess a free, lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Is SpellNumber built into Excel?

No. Excel does not include a built-in SpellNumber function. To use =SpellNumber(A1), first add a compatible custom function or an add-in that provides it.

Why does my SpellNumber formula show a #NAME? error?

Excel may not recognize the function because its VBA code or add-in is missing or unavailable. Check the function name, confirm the code is in the workbook's VBA module, and check whether macros are enabled for the trusted workbook.

Can I use the VBA SpellNumber function in Excel for the web?

No. Excel for the web cannot run VBA macros. Open the macro-enabled workbook in a compatible desktop version of Excel to use the VBA function.

Why do I need to save the workbook as an XLSM file?

The Excel Macro-Enabled Workbook (*.xlsm) format retains VBA code. Choose File > Save As and select that format after adding the function.

Can SpellNumber write a different currency or language?

That depends on the VBA code or add-in. Review its settings or edit the VBA module to change currency and language wording, then test whole numbers and decimals.