• 回答数

    9

  • 浏览数

    187

快乐Angels
首页 > 英语培训 > 数字转化英文大写

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

sophiabian

已采纳

Excel中利用numberstring公式将阿拉伯数字转换为大写数字

数字转化英文大写

246 评论(15)

shh小辣椒

数字翻译成英文如下number例句我不会太相信这些数字的。I wouldn't place too much reliance on these figures.在你的计算中把这些数字作为近似参考数值。Use these figures as an approximate guide in your calculations.

339 评论(12)

kasumi0330

在键盘中没有将数字直接变成大写的功能键,只有将英文之母改变成大写的键。但在excel中有一个功能,可以将写入的数字直接变成大写汉字。具体做法是,选中准备设置的行、列或者单元格,右键单击,点击浮动菜单中的设置单元格格式,在对话框中选择“数字”标签,“分类”中选择“特殊”,“类型”中选择“中文大写数字”,点击确定,今后在这个设置后的区域中输入的数字,会自动转换成大写数字

255 评论(11)

蛋蛋妹妹

使用自定义函数

步骤:ALT+F11,插入模块,复制下方代码

然后在需要使用的地方输入公式:=SpellNumber(单元格地址)

效果图如下,B1公式为=SpellNumber(A1)

Function SpellNumber(ByVal MyNumber)

124 评论(9)

牙牙大少

在格式里面的 编码

282 评论(9)

chuchu白白

操作步骤:

1、在输入数字前先输入“V”;

2、紧接着输入要变大写的数字;

3、现在按下b键即可输入大写数字了。

219 评论(9)

xiaxia910000

转中文大写:="大写人民币"&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))

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

网页链接

102 评论(15)

治愈系小精灵

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

179 评论(15)

别惹阿玉

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

如:=Spellnumber(A1)

223 评论(14)

相关问答