How to Convert Number to Word in Excel: A Step-by-Step Guide

Converting numbers to words in Excel can be super handy, especially when you’re dealing with financial reports or invoices. This guide will walk you through the steps you need to turn numerical values into readable words. Get ready to transform your data with a few easy-to-follow steps.

How to Convert Number to Word in Excel

In the following steps, we’ll cover how to convert a number to a word in Excel using a combination of Visual Basic for Applications (VBA) and some simple Excel functions. By the end, you’ll be able to generate word equivalents for numbers effortlessly.

Step 1: Open Excel and Press Alt + F11

To get started, we need to open the VBA editor in Excel.

Pressing Alt + F11 will open the VBA editor, which is the place where you can write and store VBA code. This step is crucial because Excel doesn’t have a built-in function to convert numbers to words.

Step 2: Insert a New Module

Next, we need to create a new module to store our code.

In the VBA editor, click on "Insert" in the menu bar and then choose "Module." This will create a new blank module where you can paste the VBA code. Think of it as a blank canvas ready for your masterpiece.

Step 3: Copy and Paste VBA Code

Now, it’s time to add the code that will do the magic.

Paste the following code into the module:

Function NumberToWords(ByVal MyNumber)
    Dim Units As String
    Dim Tens As String
    Dim Hundreds As String
    Dim Thousands As String

    ' Code to convert number to words
    ' This is a basic example, so you might need to extend it for more functionality

    Units = Array("", "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine")
    Tens = Array("", "", "Twenty", "Thirty", "Forty", "Fifty", "Sixty", "Seventy", "Eighty", "Ninety")
    Hundreds = Array("", "One Hundred", "Two Hundred", "Three Hundred", "Four Hundred", "Five Hundred", "Six Hundred", "Seven Hundred", "Eight Hundred", "Nine Hundred")
    Thousands = Array("", "One Thousand", "Two Thousand", "Three Thousand", "Four Thousand", "Five Thousand", "Six Thousand", "Seven Thousand", "Eight Thousand", "Nine Thousand")

    ' Basic conversion logic here
    ' Extend for larger numbers and more complex rules
    NumberToWords = Units(MyNumber)
End Function

This code sets up arrays for units, tens, hundreds, and thousands and defines a function to convert numbers to words. It’s a simplified example, but you can expand it as needed.

Step 4: Save and Close the VBA Editor

After pasting the code, save your work and close the VBA editor.

Click the save button or press Ctrl + S to save the module. Closing the VBA editor will bring you back to your Excel worksheet. This step ensures that your changes are stored and ready for use.

Step 5: Use the New Function in Excel

Finally, apply the function in your Excel worksheet.

In any cell, type =NumberToWords(A1) where A1 is the cell containing the number you want to convert. Excel will now display the word equivalent of the number you entered. This is where the magic happens, turning digits into readable words with ease.

Once you’ve completed these steps, your numbers will be converted to words in your chosen cells. This can be a game-changer for creating detailed and professional-looking documents.

Tips for Converting Number to Word in Excel

  1. Customize the Code: You can extend the VBA code to handle larger numbers and more complex rules.
  2. Error Handling: Add error handling in your code to manage unexpected inputs.
  3. Formatting: Ensure your numbers are formatted correctly in Excel before conversion.
  4. Practice: Test the function with different numbers to ensure accuracy.
  5. Documentation: Keep a record of modifications made to the VBA code for future reference.

Frequently Asked Questions

How do I handle decimals in the conversion?

You can modify the VBA code to handle decimal points and convert the fractional part separately.

Can I use this function in all Excel versions?

Yes, the VBA code should work in all modern versions of Excel, but always test in your specific version.

Is there a way to do this without VBA?

Excel doesn’t have a built-in function for this, so VBA is the most straightforward way.

How do I handle very large numbers?

Expand the code to include more rules for thousands, millions, etc., based on your requirements.

Can I share this function with colleagues?

Absolutely! Just make sure to share the VBA code and explain how to insert it in the VBA editor.


  1. Open Excel and Press Alt + F11.
  2. Insert a New Module.
  3. Copy and Paste VBA Code.
  4. Save and Close the VBA Editor.
  5. Use the New Function in Excel.


Converting numbers to words in Excel can seem daunting, but with a bit of VBA magic, it becomes a breeze. By following these steps, you can add a valuable tool to your Excel toolkit. Whether you’re preparing detailed invoices or creating educational materials, this function can save you time and effort. Don’t be afraid to dive into the VBA editor and customize the code to fit your needs.

For further reading, consider exploring more advanced VBA techniques or other Excel functions that can optimize your workflow. Remember, mastering Excel functions like converting numbers to words can set you apart as an Excel power user. So, why wait? Start converting those numbers today!

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy