Excel does not have a built-in function like =TEXTTOWORDS() to automatically convert a number (e.g., 125) into its written English equivalent (e.g., "One Hundred Twenty Five"). To achieve this, you must use a User Defined Function (UDF) created via Visual Basic for Applications (VBA) or use a complex combination of nested formulas for very small number ranges. The most reliable and scalable method is the VBA approach, which allows you to create a custom function that you can use across your entire spreadsheet just like a standard Excel formula.

What You'll Need

  • Microsoft Excel installed on a Windows or Mac computer.
  • A workbook saved in the .xlsm (Excel Macro-Enabled Workbook) format to ensure the custom code is preserved.
  • Basic access to the Developer tab or the ability to use the Alt+F11 keyboard shortcut.
  • Administrative permissions to enable macros on your machine.

Step-by-Step

  1. Enable the Developer Tab
    Since the tools needed for numeric-to-word conversion are hidden by default, you first need to enable the Developer tab. Right-click anywhere on the existing Ribbon (the menu at the top) and select "Customize the Ribbon". In the right-hand column, find the checkbox labeled "Developer" and check it. Click OK. Labels may vary slightly depending on your version of Excel, but the process remains the same.
  2. Open the Visual Basic Editor
    Click on the "Developer" tab you just enabled and click the "Visual Basic" button on the far left. Alternatively, you can press Alt + F11 on your keyboard. This opens a separate window where the underlying code for your workbook is managed.
  3. Insert a New Module
    In the Visual Basic Editor, go to the top menu and click "Insert" > "Module". This creates a blank white space where you can paste the custom function. It is important to put the code in a Module rather than a Sheet or ThisWorkbook object, as this makes the function available to all sheets in the workbook.
  4. Paste the Conversion Code
    You will need a VBA script known as "SpellNumber". Because this is a complex logic process (handling billions, millions, thousands, and decimals), you should source the official Microsoft "SpellNumber" script from the official Microsoft Support documentation. Copy the entire block of code provided in their technical documentation and paste it into the blank module window. This script handles the logic of breaking down the number into groups of three and assigning the correct word (e.g., "thousand", "million").
  5. Save the Workbook as Macro-Enabled
    This is the most critical step. Standard .xlsx files cannot store VBA code. Go to File > Save As. In the file type dropdown menu, select "Excel Macro-Enabled Workbook (*.xlsm)". If you save it as a standard workbook, the conversion function will disappear the next time you open the file.
  6. Apply the Function in Your Sheet
    Return to your main Excel spreadsheet. In any empty cell, type the formula: =SpellNumber(A1) (assuming the number you want to convert is in cell A1). Press Enter. The cell will now display the number as words, typically formatted for currency (e.g., "One Hundred Twenty Five Dollars and No Cents").
  7. Customize the Output
    If you do not want the currency terms ("Dollars" and "Cents"), you can go back to the VBA editor (Alt+F11), find the lines of code that contain the words "Dollars" and "Cents", and replace them with empty quotes "" or your preferred currency. After editing, press Ctrl+S to save the changes.

Common Mistakes

The most frequent error users encounter is saving the file in the wrong format. If you save as .xlsx, Excel will warn you that the VBA project will be lost. If you ignore this warning, the =SpellNumber formula will result in a #NAME? error the next time the file is opened because the function no longer exists in the workbook's memory.

Another common mistake is attempting to use this function in Excel Online (the web browser version). Excel Online does not support VBA macros. If you create a macro-enabled workbook on the desktop app and open it in a browser, the formulas will not calculate, and you will see a warning that the workbook contains macros that cannot be run in the browser. You must use the desktop application to execute the conversion.

Users also frequently forget to enable macros upon reopening the file. When you open an .xlsm file, Excel usually displays a yellow security bar at the top stating "Macros have been disabled". You must click "Enable Content" for the numeric-to-word function to work. Without this permission, the cells will remain as #NAME? errors.

Tips

To make the function available in every single Excel file you create (rather than just one specific workbook), you can save the VBA code in your "Personal Macro Workbook" (Personal.xlsb). This is a hidden workbook that opens every time you start Excel. Once the code is there, you can call the function from any file, though you may need to reference it as =Personal.xlsb!SpellNumber(A1).

If you are dealing with very large numbers, ensure your input cells are formatted as "Number" or "General" and not as "Text". If a number is stored as text, the VBA function might struggle to perform the mathematical divisions required to determine if the number is in the millions or billions, leading to an incorrect word output.

For those who need the result to be in a specific case (e.g., all uppercase or only the first letter capitalized), you can wrap the custom function in standard Excel text functions. For example, use =UPPER(SpellNumber(A1)) to get "ONE HUNDRED DOLLARS" or =PROPER(SpellNumber(A1)) to get "One Hundred Dollars".

Troubleshooting

If you see a #NAME? error, it means Excel does not recognize the word "SpellNumber" as a valid function. First, check if you are in a Macro-Enabled Workbook (.xlsm). Second, check the Developer tab to ensure the code is still present in the Module. If the code is there, ensure you have clicked "Enable Content" on the yellow security bar at the top of the screen.

If the function returns an incorrect word or skips a portion of the number, check the input value. If the number is too large (exceeding the limits of the "Double" or "Long" data types in VBA), the code may overflow. Most standard SpellNumber scripts handle up to trillions, but extremely large scientific notations may fail.

If the VBA editor freezes or crashes when you try to insert the module, restart Excel and try the Alt+F11 shortcut again. Ensure that no other dialog boxes (like a "Find and Replace" window) are open in the background, as these can sometimes lock the VBA interface.

If you are on a corporate computer and cannot see the Developer tab or cannot save as .xlsm, your organization's Group Policy may have disabled macros for security reasons. In this case, you will not be able to use VBA. Your only alternative would be a highly complex nested IF and CHOOSE formula, which is only practical for numbers up to 99 or 999 and is not recommended for general use.

Frequently Asked Questions

Can I use this in Google Sheets?

No, VBA is exclusive to Microsoft Excel. Google Sheets uses Apps Script (based on JavaScript). To achieve this in Sheets, you would need to write a similar function using the Script Editor found under the Extensions menu.

Does this work for decimals?

Yes, the standard Microsoft SpellNumber script is designed to handle decimals by treating the remainder as "Cents". You can modify the code in the VBA editor to change "Cents" to "Decimals" or any other term.

Will this work on Excel for Mac?

Yes, VBA is supported on Excel for Mac. The process of opening the Visual Basic Editor and inserting a module is nearly identical, though the keyboard shortcuts may differ (use Option + F11 if Alt + F11 does not work).

Can I convert numbers to words in other languages?

The basic SpellNumber script is written for English. To convert numbers to Spanish, French, or other languages, you would need a different VBA script that includes the specific linguistic rules and wordings for that language.

Is there a way to do this without VBA?

Only for very small ranges of numbers. You can use a combination of the TEXT function and nested IF statements, but for any number over 1,000, the formula becomes too long and unstable to be practical. VBA is the industry standard for this task.