提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。
登录
x
or
x
x
马上登记
x

or

如何在Excel中拼出数字或转换成英文单词?

假设您有很多价格数字,现在您需要将它们转换或拼写成文本字符串。 例如,转换 $123.55 到英文单词 一百二十三美元五十五美分。 在Excel中,没有有效的工具来解决这个问题,但使用了长而复杂的VBA代码。 在这篇文章中,我会介绍一些处理它的方法。

用VBA代码拼出或转换成英文单词

用Kutools for Excel拼出或将数字转换为英文单词

在Excel中轻松拼写多个货币数字

用Excel的Kutools 拼出数字 实用程序,您可以轻松地将多个货币数量批量转换为英文或中文单词。 全功能免费试用60天!
广告将货币编号拼写为单词

Kutools for Excel - 包括多个用于Excel的300便捷工具。 全功能免费试用60天,无需信用卡! 现在加入

Office选项卡在Office中启用选项卡式编辑和浏览,使您的工作更轻松......
Kutools for Excel - 最佳办公生产力工具将解决您的大部分Excel问题
  • 重用任何东西: 将最常用或最复杂的公式,图表和其他任何内容添加到您的收藏夹中,并在将来快速重复使用它们。
  • 超过20文本功能: 从文本字符串中提取数字; 提取或删除部分文本; 将数字和货币转换为英语单词...
  • 合并工具:多个工作簿和表格合二为一; 合并多个单元格/行/列而不丢失数据; 合并重复行和总和...
  • 拆分工具:根据价值将数据拆分为多个表格; 一个工作簿到多个Excel,PDF或CSV文件; 一列到多列......
  • 粘贴跳过 隐藏/过滤行; 数和总和 按背景颜色; 创建邮件列表和 通过Cell的价值发送电子邮件...
  • 超级过滤器: 创建高级过滤方案并应用于任何工作表; 排序 按周,日,频率等; 筛选 通过大胆,公式,评论......
  • 超过300强大的功能; 适用于Office 2007-2019和365; 支持所有语言; 在公司轻松部署; 全功能60天免费试用。

用VBA代码拼出或转换成英文单词


以下长VBA代码可以帮助您将数字拼写为文本字符串。 做如下:

1。 按住 ALT + F11 键,然后打开 Microsoft Visual Basic for Applications 窗口。

2。 点击 插页 > 模块,并粘贴在下面的宏 模块窗口。

VBA:在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。 然后保存代码,并返回到工作表,在相邻的Cell B2中输入公式 = SpellNumberToEnglish(A1),看截图:

4。 然后按 输入 键,然后选择单元格B2,然后根据需要将填充柄移动到包含此公式的范围。 并且所有货币编号都拼写为英文单词。 看截图:

注意:因为它们是公式,所以当您需要复制并粘贴它们时,请粘贴为值。


用Kutools for Excel拼出或将数字转换为英文单词

也许上面的长代码可以让你生气,请不要担心,在这里我可以给你一个简单快捷的解决方法。 随着 Kutools for Excel拼出数字 功能,您可以快速方便地将数字转换为文本字符串。

Kutools for Excel - 包括多个用于Excel的300便捷工具。 全功能免费试用60天,无需信用卡! 现在加入

1。 选择要拼出的范围编号,然后单击 Kutools > 内容 > 拼出数字。 看截图:

2。 在 拼出数字 对话框中选择 英语 来自 语言。 您可以预览右侧的结果 预览 窗格。 看截图:

3。 然后点击 Ok or 申请。 并且所有的价格数量已经转换为原始范围内的文本字符串。

注意:如果您需要中文价格的话,请点击 中文 选项从 语言.

这个梦幻般的特点 拼出数字 可以轻松地将货币数字翻译成英文或中文的货币文本,例如将32.01翻译成“三十二美元一分钱”或“叁拾贰元零壹分”。 免费试用!

演示: 拼写货币数字到英文单词

在这个视频中, Kutools Kutools Plus 选项卡添加 Kutools for Excel。 如果需要,请点击 60天免费试用,不受限制!

Kutools for Excel - 最佳办公生产力工具提高80%的生产力

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能60天免费试用。
kte tab 201905

Office选项卡为Office提供选项卡式界面,使您的工作更轻松

  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
官方底部
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    HRIDESH KUMAR JAISWA · 4 months ago
    How can i get actuall figure without "no cents/ no dollars", if it's not needed. Please Email me in shown Mail ID.
  • To post as a guest, your comment is unpublished.
    Hassan Khan · 10 months ago
    I was unable to do it, I don't know what happened to it, first of all it was OK, but only for one time then it shows this sign #NAME? can any one help me in this regards.
    • To post as a guest, your comment is unpublished.
      Kiks · 7 months ago
      Save it as Excel Macro Enable Workbook. and each time you will open the file, you'll see a Security Warning prompt (usually on top of Formula Bar) you have to click the Option button and tick the "Enable this content". This would solve your problem. Hope it would help
    • To post as a guest, your comment is unpublished.
      Mukesh · 9 months ago
      Please try one more time
  • To post as a guest, your comment is unpublished.
    Rajashekar · 1 years ago
    everytime i close the file.. the complete program is lost.. how can i save this for all my excel files
  • To post as a guest, your comment is unpublished.
    shabeen · 1 years ago
    thanks for the excellent job, I tried it , great , its working , greetings from Sri Lanka
  • To post as a guest, your comment is unpublished.
    Leonard Ruhashya · 1 years ago
    We thank you for this guideline it is most helpful, but how can i change the currency from Dollars to Rwandan Francs?

    Thanks
    • To post as a guest, your comment is unpublished.
      shabeen · 1 years ago
      search the below texts in the vba code and replace eg : search 1 >> Search for "Dollars" Replace with "Rwandan Francs"
      search 2 >> Search for "Dollar" Replace with "Rwandan Franc"
  • To post as a guest, your comment is unpublished.
    MOSES WAKIBI · 1 years ago
    I have followed the guidelines and managed to do it perfectly well for the first time. I have been designing templates and it has worked for me. Thank you so much.
  • To post as a guest, your comment is unpublished.
    Md Azmul Hossain · 1 years ago
    i wan to change this eg:( one hundred thousand rupees only ), pls explain me how to get that word "only"
  • To post as a guest, your comment is unpublished.
    Birkan · 1 years ago
    Amazing...You helped A LOT.. Thank you very much indeed
  • To post as a guest, your comment is unpublished.
    gamage · 1 years ago
    i wan to change this eg:( one hundred thousand rupees only ), pls explain me how to get that word "only"
  • To post as a guest, your comment is unpublished.
    Jalil · 2 years ago
    I just want to write like this (USD One Thousand One Hundred Ten and Cents Forty Five Only.) but how to convert like this?
  • To post as a guest, your comment is unpublished.
    Sonny · 2 years ago
    How can I convert so that the word "and" appears before the last two or three digits are converted.. For example.. at the moment the script converts 131 as One Hundred Thirty One.. but I want to convert as.. One Hundred AND Thirty one.. so 77762 should appear as.. Seventy Seven Thousand Seven Hundred AND Sixty Two.. is that possible? Thanks!
    • To post as a guest, your comment is unpublished.
      Joe · 1 years ago
      Sonny, did you get a solution to your question? Please share with me cause am facing same problem. I want 131 to be converted as One Hundred and Thirty One but not One Hundred Thirty One. Any Help?
    • To post as a guest, your comment is unpublished.
      Kat Overton · 2 years ago
      Yes Sonny that's is correct way to spell 77762
  • To post as a guest, your comment is unpublished.
    VISHNU · 2 years ago
    How can i get actuall figure without "no cents/ no dollars", if it's not needed. Please Email me in shown Mail ID.
  • To post as a guest, your comment is unpublished.
    ANNA · 2 years ago
    [quote name="jabesh"]Please change all the words ~dollar/dollars" and ~cent/cents" in the code into your currency name.[/quote]
    change peso to dollar and change cent into 5/100
  • To post as a guest, your comment is unpublished.
    Santosh Verma · 2 years ago
    At the First Attempt it Worked but second day when i Opened same file the box in which formula was applied showed error I tried it Reached to Module 9 but I could not tackle the Problem, Please give Solution.
  • To post as a guest, your comment is unpublished.
    Muhammad Salman · 2 years ago
    please help me i want to change dollors in riyal and cent want to change in halalas. any body have any formet please give me that thanks.
  • To post as a guest, your comment is unpublished.
    sanjay sana · 2 years ago
    THANK YOU VERY AFTER LONG LONG DAY, NOW MY PROBLEM HAS BEEN SOLVED, TO CONVERT NUMERIC TO WORD...
  • To post as a guest, your comment is unpublished.
    Khurrum Iqbal · 2 years ago
    I am using MS Windows 10, 64 bit and MS Office Professional 2016, 64 bit.

    When I use =spellnumber() function and save the Excel work book with macro enabled file type, it works fine, but when I re-open the same or new work book it is not working at all.

    Is it possible that this function can work with all new and old work books, every time, whenever I want to use this function.

    Please help, how to solve this problem?.
  • To post as a guest, your comment is unpublished.
    Alpesh Patel · 2 years ago
    એક્ષેલ માં નંબર કે રકમને ગુજરતી શબ્દોમાં લખવા માટે

    "Alpesh175" ગુગલમાં સર્ચ કરો.
  • To post as a guest, your comment is unpublished.
    paula · 2 years ago
    Hi,

    Can you give the formula on how to convert the cents into fraction?
    ex. $100.10 to one hundred dollars & 10/100 cents

    Regards,
    Paula
  • To post as a guest, your comment is unpublished.
    Amanuel · 2 years ago
    Good evening,

    I need exell to spell a mumber seperatelly for me. example:

    a1 b1 c1 d1 e1
    14,300.21 one four three zero zero basically in six coloums.
    439.33 Four three nine
  • To post as a guest, your comment is unpublished.
    Khairul · 2 years ago
    Dear Sir, Its working fine for US dollar but i need for BD taka

    Pls. help me
  • To post as a guest, your comment is unpublished.
    Chandra · 2 years ago
    I cannot save this features in excel. When i get out the file & reopen the file, it does not work. How can i save this? How can i get actuall figure without "no cents/ no dollars", if it's not needed. Please Email me in shown Mail ID.
  • To post as a guest, your comment is unpublished.
    adel · 2 years ago
    hi,
    it is a great job, it worked very nice with me.
    but, I need to change the dicimals from 2 to 3.
    can you please assist me ?
    kind regards
    adel
  • To post as a guest, your comment is unpublished.
    adel · 2 years ago
    hi,
    this is a great job ... thanks
    but, how can change the dicimals to 3 digits instead of 2 digits.
    appreciate it
    adel
  • To post as a guest, your comment is unpublished.
    Saeed · 2 years ago
    Dear Admin, This is a very cool code which have programmed by you... Although, when I typed $200 the result shows (Two Hundred Dollars and no Cents)
    and when I typed $0.2 the result shows (No Dollars and Twenty Cents).... The question is that when I didn't type any Cent in number (i.e $200) why result shows NO CENTS... Subsequently, when I didn't type any dollar in number (i.e $0.2) why result shows NO DOLLAR.... If I want to get result except aforesaid two question what should the code be?????
  • To post as a guest, your comment is unpublished.
    raghu h n · 3 years ago
    spellnumber insert using visual basis but automatically is not working once i saved and open the document
  • To post as a guest, your comment is unpublished.
    shreenadh · 3 years ago
    FOR THIS PUPPIES 125420/-
    THIS CODE GETTING [b]ONE HUNDRED TWENTY FIVE THOUSAND FOUR HUNDRED TWENTY[/b]
    I WANT [b]ONE LAKH WENTY FIVE THOUSAND FOUR HUNDRED TWENTY [/b]
  • To post as a guest, your comment is unpublished.
    Rohit Bansal · 3 years ago
    Thanks for the same.. it was indeed of great help!!
  • To post as a guest, your comment is unpublished.
    Kaushik · 3 years ago
    How can i change the 244327565.75 - Twenty Four Crores Forty three lakhs Twenty Seven Thousand Five Hundred Sixty Five and Seventy Five Paise. Please show the step.
  • To post as a guest, your comment is unpublished.
    Jaafar · 3 years ago
    it works wonders tq, happy happy happy
  • To post as a guest, your comment is unpublished.
    Jaafar · 3 years ago
    TQ it works wonders!!
  • To post as a guest, your comment is unpublished.
    Imtiaz · 3 years ago
    Hi,

    Tks for the formula. But I need it to show as [b]US$[/b] in front and after the cents the word [b]only[/b]. How can I do that please:
    • To post as a guest, your comment is unpublished.
      JohnE · 3 years ago
      Use concatenate...
      For example, if you want to convert 5,362.86 to display US$ Five Thousand Three Hundred Sixty Two Dollars and 86 cents only", then use:
      =CONCATENATE("US $ ",(spellnumber(A17))," only"). The result is US $ Five Thousand Three Hundred Sixty Two Dollars and Eighty Six Cents only
  • To post as a guest, your comment is unpublished.
    Amit Roy · 3 years ago
    i done it sucessfully, thanks
  • To post as a guest, your comment is unpublished.
    Gulraiz · 3 years ago
    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
  • To post as a guest, your comment is unpublished.
    Pinky Sharma · 3 years ago
    Thanks..!
    User can also try free GWORD Multi Currency Converter to Words.
    Link - www.gwordformula.blogspot.com
  • To post as a guest, your comment is unpublished.
    jayesh · 3 years ago
    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
  • To post as a guest, your comment is unpublished.
    jayesh · 3 years ago
    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[/quote]

    I also faced same issue, any help please. thanks[/quote]
  • To post as a guest, your comment is unpublished.
    Sonephet · 3 years ago
    I whant some help how to edit code vba excel What Want spell 1.200.000 = One million two hundred thousand only change in to My currency is One million two San only
  • To post as a guest, your comment is unpublished.
    khalan · 3 years ago
    I have input 100,000 became One hundred thounthoun
    what I need my currency 100,000 = One Sen
    Please kindly help.
  • To post as a guest, your comment is unpublished.
    Anil Sharma · 3 years ago
    Its is a very good formula, But I need the words in Indian format.
    is any short key for spell out Number Function
  • To post as a guest, your comment is unpublished.
    bhavana · 3 years ago
    is any short key for spell out Number Function
  • To post as a guest, your comment is unpublished.
    Michelle · 3 years ago
    Hi! This is of great help but how about if i want to convert 1,234,567.89
    to One Million Two Hundred Thirty Four Thousand Five Hundred Sixty Seven & 89/100 Only. Thank you.
  • To post as a guest, your comment is unpublished.
    basil secusana · 3 years ago
    Thanks, i got it, it help me a lot
  • To post as a guest, your comment is unpublished.
    Sinourn · 3 years ago
    It's really helpful Thanks very much i was success with Kutools for Excel
  • To post as a guest, your comment is unpublished.
    Mujeeb Ahmed · 4 years ago
    Dear, Sir I have been getting your help with ur formulas & code & your instructions.
    Thank you for all of your help..
    Sir I need translator formula so I can translate my work after finishing it in English to Arabic language..
    Can you plz help me out with the formula or codes with your instructions plz you instructions help required..
    I'm not well educated nor into technology just my passion for knowledge & learning.
    Thank you
    Regards
    Mujeeb Ahmed.
  • To post as a guest, your comment is unpublished.
    Anna · 4 years ago
    this is also my concern..please help
  • To post as a guest, your comment is unpublished.
    Skodin · 4 years ago
    Need this feature on your Android Mobile ?
    You have problems writing your amounts in letters on checks? transfer form? rebate check form?
    SpellMyAmount facilitate you all this; you enter the amount in numbers and it writes it for you in letters.
    SpellMyAmount is an Android application available on Google Play!
    Download it now: https://goo.gl/55u2YQ
    On FaceBook: https://goo.gl/s1t89g
  • To post as a guest, your comment is unpublished.
    Qaiser Farman · 4 years ago
    Great tool...
    Just one more thing, i dont want it to show this dollar and cents thing as i need only the words?
    Any tool for that. Please??
  • To post as a guest, your comment is unpublished.
    JITESH AGARWAL · 4 years ago
    need help in excell 97-2003
  • To post as a guest, your comment is unpublished.
    saravanaprakash · 4 years ago
    How can i change the 169531535.25 - Sixteen Crores Ninety Five lakhs Thirty One Thousand Five Hundred Thirty Five and Twenty Five Paise