• 回答数

    8

  • 浏览数

    144

海诺地暖
首页 > 英语培训 > 数字转化英语大写

8个回答 默认排序
  • 默认排序
  • 按时间排序

janniferLEE

已采纳

使用数字转英文货币大写“自定义函数”,具体使用方法如下:

所需材料:Excel、数字转英文货币大写自定义函数(可通过网络复制粘贴)。

一、首先打开Excel表格文件,按Alt+F11打开VBA窗口,插入一个“模块”。

二、右键模块1,菜单内点击“导入文件”。

三、找到数字转大写英文货币的BAS格式文件,点击“打开”。

四、这时就可以把该函数导入VBA模块,另外如果是通过网格上粘贴的数字转英文大写金额函数,则真可以在下图白色区域内Ctrl+V粘贴进来即可,导入函数后,关闭VBA窗口。

五、这时在数字单元格右边单元格内输入=SpellNumber(A1),按回车键即可得出大写英文金额,其它单元格下拉填充即可。

数字转化英语大写

228 评论(14)

工长360姜文芳

找了找,好像只能vba编程解决。代码见连接,仅供参考。

网页链接

239 评论(11)

母婴家居学院

这个需要VB代码:你需要复制代码——在EXCEL中按ALT+F11——插入——模块——粘贴代码——然后就可以使用函数Spellnumber了。

如:=Spellnumber(A1)

240 评论(14)

钱川同学

1、one— first (第一)

2、two―second(第二)。

3、three— third(第三)

4、four-fourth(第四)。

5、five―fifth (第五)。

6、six―sixth (第六)。

7、seven―seventh (第七)。

8、eight―eighth (第八)。

9、nine―ninth (第九)。

10、ten―tenth(第十)。

扩展资料

1、3-4位的数字读法:

英语中有“百”和“千”的计数单位,所以直接用数字+计数单位+数字就可以。比如:105 读作  one hundred (and) five,245 读作 two hundred (and) forty-five,3,286 读作 three thousand two hundred (and) eighty-six。

2、四位数字也可以读作thirty-two, eighty-six,也就是说两个两个的读出来。

3、 5-6位的数字读法:

处理5位以上的数字时,我们要记得看“逗号”,因为三个数字一个逗号,即三位一节,把三位看成一个整体,后面再加一个单位。5位的数字在汉语中可以用“万”来表示,6位即是“十万”,在英语中却没有相应的单位词。

282 评论(8)

晓旭的妈妈

要用vba来完成。。。。

349 评论(14)

Mr.白马王爷

U.S.DOLLARSONEHUNDREDANDTHIRTY-NINETHOUSANDFIVEHUNDREDANDNINETY-SIXANDCENTSNINETY-SIXONLYU.S.DOLLARSONEHUNDREDANDFIFTY-ONETHOUSANDTWOHUNDREDANDTHIRTYANDCENTSFOURONLY

134 评论(10)

我的飞飞

转中文大写:="大写人民币"&SUBSTITUTE(SUBSTITUTE(IF(-RMB(A1,2),TEXT(A1,";负")&TEXT(INT(ABS(A1)+0.5%),"[dbnum2]G/通用格式圆;;")&TEXT(RIGHT(RMB(A1,2),2),"[dbnum2]0角0分;;整"),),"零角",IF(A1^2<1,,"零")),"零分","整")

转英文大写:

先alt+f11, 打开vba, 插入模块,复制下面代码->粘贴,

Function SpellNumber(ByVal MyNumber)

Dim Dollars, Cents, Temp

Dim DecimalPlace, Count

ReDim Place(9) As String

Place(2) = " Thousand "

Place(3) = " Million "

Place(4) = " Billion "

Place(5) = " Trillion "

' String representation of amount.

MyNumber = Trim(Str(MyNumber))

' Position of decimal place 0 if none.

DecimalPlace = InStr(MyNumber, ".")

' Convert cents and set MyNumber to dollar amount.

If DecimalPlace > 0 Then

Cents = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & _

"00", 2))

MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))

End If

Count = 1

Do While MyNumber <> ""

Temp = GetHundreds(Right(MyNumber, 3))

If Temp <> "" Then Dollars = Temp & Place(Count) & Dollars

If Len(MyNumber) > 3 Then

MyNumber = Left(MyNumber, Len(MyNumber) - 3)

Else

MyNumber = ""

End If

Count = Count + 1

Loop

Select Case Dollars

Case ""

Dollars = " DOLLARS"

Case "One"

Dollars = " DOLLAR"

Case Else

Dollars = Dollars & " DOLLARS"

End Select

Select Case Cents

Case ""

Cents = " ONLY."

Case "One"

Cents = " and One Cent ONLY."

Case Else

Cents = " and " & Cents & " Cents ONLY."

End Select

SpellNumber = Dollars & Cents

End Function

' Converts a number from 100-999 into text

Function GetHundreds(ByVal MyNumber)

Dim Result As String

If Val(MyNumber) = 0 Then Exit Function

MyNumber = Right("000" & MyNumber, 3)

' Convert the hundreds place.

If Mid(MyNumber, 1, 1) <> "0" Then

Result = GetDigit(Mid(MyNumber, 1, 1)) & " Hundred "

End If

' Convert the tens and ones place.

If Mid(MyNumber, 2, 1) <> "0" Then

Result = Result & GetTens(Mid(MyNumber, 2))

Else

Result = Result & GetDigit(Mid(MyNumber, 3))

End If

GetHundreds = Result

End Function

' Converts a number from 10 to 99 into text.

Function GetTens(TensText)

Dim Result As String

Result = ""           ' Null out the temporary function value.

If Val(Left(TensText, 1)) = 1 Then   ' If value between 10-19...

Select Case Val(TensText)

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                                 ' If value between 20-99...

Select Case Val(Left(TensText, 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(TensText, 1))  ' Retrieve ones place.

End If

GetTens = Result

End Function

' Converts a number from 1 to 9 into text.

Function GetDigit(Digit)

Select Case Val(Digit)

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

改良公式:=UPPER("say "&SpellNumber(A1))

附件:中英文数字金额转大写 (注意:有宏:))

网页链接

260 评论(9)

得帮小赵

具体公式如下:

169 评论(8)

相关问答