Note: The other languages of the website are Google-translated. Back to English

How to spell out or convert numbers to English words in Excel?

Supposing you have a lot of price amount numbers, and now you need to convert or spell out them to text strings. For example, convert $123.55 to the English words one hundred twenty-three dollars and fifty five cents. In Excel there are no effective facility to solve this problem but using the long and complex VBA code. In this article, I will introduce you some methods to deal with it.

Spell out or convert numbers to English words with VBA code

Spell out or convert numbers to English words with Kutools for Excel


Spell out or convert numbers to English words with VBA code

The following long VBA code can help you to spell out numbers to text strings. Do as follows:

1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.

2. Click Insert > Module, and paste the following macro in the Module window.

VBA: Spell out currency numbers to English words in Excel

Function SpellNumberToEnglish(ByVal pNumber)
'Updateby20131113
Dim Dollars, Cents
arr = Array("", "", " Thousand ", " Million ", " Billion ", " Trillion ")
pNumber = Trim(Str(pNumber))
xDecimal = InStr(pNumber, ".")
If xDecimal > 0 Then
    Cents = GetTens(Left(Mid(pNumber, xDecimal + 1) & "00", 2))
    pNumber = Trim(Left(pNumber, xDecimal - 1))
End If
xIndex = 1
Do While pNumber <> ""
    xHundred = ""
    xValue = Right(pNumber, 3)
    If Val(xValue) <> 0 Then
        xValue = Right("000" & xValue, 3)
        If Mid(xValue, 1, 1) <> "0" Then
            xHundred = GetDigit(Mid(xValue, 1, 1)) & " Hundred "
        End If
        If Mid(xValue, 2, 1) <> "0" Then
            xHundred = xHundred & GetTens(Mid(xValue, 2))
        Else
            xHundred = xHundred & GetDigit(Mid(xValue, 3))
        End If
    End If
    If xHundred <> "" Then
        Dollars = xHundred & arr(xIndex) & Dollars
    End If
    If Len(pNumber) > 3 Then
        pNumber = Left(pNumber, Len(pNumber) - 3)
    Else
        pNumber = ""
    End If
    xIndex = xIndex + 1
Loop
Select Case Dollars
    Case ""
        Dollars = "No Dollars"
    Case "One"
        Dollars = "One Dollar"
    Case Else
        Dollars = Dollars & " Dollars"
End Select
Select Case Cents
    Case ""
        Cents = " and No Cents"
    Case "One"
        Cents = " and One Cent"
    Case Else
        Cents = " and " & Cents & " Cents"
End Select
SpellNumberToEnglish = Dollars & Cents
End Function
Function GetTens(pTens)
Dim Result As String
Result = ""
If Val(Left(pTens, 1)) = 1 Then
    Select Case Val(pTens)
        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"
        Case Else
    End Select
Else
Select Case Val(Left(pTens, 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 "
    Case Else
End Select
Result = Result & GetDigit(Right(pTens, 1))
End If
GetTens = Result
End Function
Function GetDigit(pDigit)
Select Case Val(pDigit)
    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

3. Then save the code, and return to the worksheet, in the adjacent Cell B2, enter the formula =SpellNumberToEnglish(A1), see screenshot:

4. Then press Enter key, and select the Cell B2, then drag the fill handle over to the range that contains this formula as you need. And all of the currency numbers have been spelt out to English words. See screenshot:

Note: As they are formulas, when you need to copy and paste them, please paste as values.


Spell out or convert numbers to English words with Kutools for Excel

Maybe the above long code can make you be mad, please don't worry, here I can give you an easy and quick way to solve it. With the Kutools for Excel’s Numbers to Words function, you can quickly and conveniently convert the numbers to text strings.

Kutools for Excel- Includes more than

300
handy tools for Excel. Full feature free trial
30
-day, no credit card required! Get It Now

1. Select the range numbers that you want to spell out, and click Kutools > Content > Numbers to Words.
doc kutools number to words 1

2. In the popping out dialog box, choose English from the Languages. And you can preview the results from the right Preview Pane. See screenshot:
doc kutools number to words 2

3. Then click Ok or Apply. And all of the price amount numbers have been converted to text strings in the original range.
doc kutools number to words 3

Note: If you just want to convert numbers to English words (not currency), please check Not converted to Currency checkbox.
doc kutools number to words 3 doc kutools number to words 3

This fantastic feature of Numbers to Words can easily translate currency numbers to the text of currency in English or Chinese, such as translate 32.01 to "Thirty-two dollars and one cent" or "叁拾贰元零壹分". Have a Free Trial!

Demo: Spell out currency numbers to English words


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office / Excel 2007-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (112)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Its Really Cool. And Fount its easy to change the Word " Dollar and Send to Rupees or any other currency we want by Copy pasting the cod to any other new word page and replacing the Same.
This comment was minimized by the moderator on the site
I am not getting this formula in my Sheet, Can you show me in detail
This comment was minimized by the moderator on the site
Thank you for your valuable information. I need to mention that it's Dirham and not dollar, how can i make it Thank you in advance
This comment was minimized by the moderator on the site
Please change all the words ~dollar/dollars" and ~cent/cents" in the code into your currency name.
This comment was minimized by the moderator on the site
I tried this and worked for me... go the module, ctrl F to find >>> then in the find put Dollar and then go to replace (in the same popup box) and put Dirham, it will work
This comment was minimized by the moderator on the site
Problem on rounding off with numbers. Example is in my general data is 50.576 but when I rounded it off and become 50.58, Words doesn't change/convert according to the new value.
This comment was minimized by the moderator on the site
It's a well-working code. Thanks a lot.
This comment was minimized by the moderator on the site
Its is a very good formula, But I need the words in Indian formats
This comment was minimized by the moderator on the site
plx make me clear that how can I see it in my country's currency format i.e. Rupees in place of Dollars and Paisa in place of Cents.
This comment was minimized by the moderator on the site
dEAR SIR, Its is a very good formula, But I need the words in Indian formats PLEASE ADVICE
This comment was minimized by the moderator on the site
is it possible to get data as 100th after decimal, for example .100 answer shout be as 100 instead of ten
This comment was minimized by the moderator on the site
thanks for the formula, however, is it possible to get the word "Dollar/Rupees" as a prefix i.e. Rupees One thousand .... and Paisas thirty only. would really appreciate your response.
This comment was minimized by the moderator on the site
How Can i change amount in english words in indian currency
This comment was minimized by the moderator on the site
copy the above code language in a word sheet replace word "dollar" with "Rupees" Then Replace word "cents" with "Paisa" go back to excel file press alt+F11 insert>>> module >> paste the entire word file till "end function" do .....=SpellNumberToEnglish(cellref) & you are good to go
This comment was minimized by the moderator on the site
Hi Sir, I tried to save the macro as you mentioned above. and it is working fine. but if i close the excel and open a new sheet, it is not working . pls help
This comment was minimized by the moderator on the site
HELLO JUS YOU CAN INSTALL SPEL CURR ADDIN YOU CAN CONVERT :) :) :lol:
This comment was minimized by the moderator on the site
Thaks a lot, could you please let me now how can i get indian format(Rupees)
This comment was minimized by the moderator on the site
doesn't work. pop up says class not registered. no option to choose language. error code
This comment was minimized by the moderator on the site
wow great for the stuff i have been looking for a week. It works great. Thanks a lot
This comment was minimized by the moderator on the site
its really helpful, really really big thanks :-)
This comment was minimized by the moderator on the site
THNX ATONE FOR SUCH TIPS
This comment was minimized by the moderator on the site
I have conducted a research and could not be able to convert into Pakistan currency system, as we people use this format. 1,00,00,00,00,000.00 but excel use this format 1,000,000,000,000. and the code is in million and trillion formula. I tried to change lack, karor, arab and kharab instead of million, billion and trillion, but it will change only words and the system will remain same. like after change it will show this one. 100,000,000 it should be hundred million, but it will be shown hundred lakhs.If some one can help me i shall be thankfull to you.
This comment was minimized by the moderator on the site
I want to convert Metric weight from numbers to words. eg. 1. 10.50 Metric Tons (MT) should write as "10 Tons and 500 kgs" 2. 12.345 MT = Twelve Tons and Three hundred Forty Five Kgs Need 3 decimal places atleast and 4 is even better. max 9999.9999 is how i want. Can someone please help?
This comment was minimized by the moderator on the site
Please if you found the way... please email me islamrafat@gmail.com Thanks
This comment was minimized by the moderator on the site
If you found please email me islamrafat@gmail.com
This comment was minimized by the moderator on the site
Fantastic. Thanks to Extend Office
This comment was minimized by the moderator on the site
Thanks for this Help its working :-)
There are no comments posted here yet
Load More
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL