# Words to Numbers in Excel

There are Excel formulas and User Defined Functions (UDF) that can change numbers into words. Those are handy if you’re typing a number into a workbook, and want the written amount to be shown, as it might appear in a cheque.
Have you ever tried to do the opposite – change words into numbers? It’s a tricky process, and Excel MVP, Jerry Latham, has created an Excel UDF – WordsToDigits – to help you out.

### Words to Numbers

With the WordsToDigits UDF, you can create a worksheet formula to translate words into their numeric value. For example:

• Five hundred fifty-two becomes 552
• One dollar and 27 cents becomes 1.27

In the first example, the words are in cell B2, and the formula in cell C2 is:
=WordsToDigits(B2)
You can format the formula results in any number format you want, such as general numbers, numbers with thousands separators, or currency.

### Refer to Worksheet Cells

Although the WordsToDigits UDF is quite flexible, it only works with cell references, not text strings. For example, this formula in cell C2:
=WordsToDigits(“twelve”)
will result in a #VALUE! Error.

However, if you type “twelve” in cell B3, and refer to that cell in the formula, the result is correct. Here is the formula that’s entered in cell C3:
=WordsToDigits(B3)

### WordsToDigits Tips

Jerry passed along these tips, for working with the WordsToDigits UDF:

• It can handle numbers up to 999,999,999,999,999.
• The accuracy of any decimal portion decreases as the number of digits increases.  But at normally used value ranges such as up through millions, this should not be a significant issue.
• Any fractional parts of a number must be entered as digits, as:
• six and 7/100
• twelve hundred dollars and 27 cents
• Misspelling of numeric words will result in them being interpreted as zero, so typos can give inaccurate results.

Note: The WordsToDigits UDF is based on the short scale system of naming large numbers.

### Experiment With the WordsToDigits UDF

You can download Jerry’s workbook, to see the UDF code, and his examples of how to use the function.
Go to Jerry’s Sample Files page on my website. Then, in the VBA section, look for JL0001 — Words to Numbers in Excel.
To test the UDF, you can create your own entries on the workbook’s Sample Entries sheet.
If you have questions or comments, please share them with Jerry, in the comments below.
___________________