把表格的货币数字变成英文大写
A. EXCEL里,把货币小写变成大写的通用格式是
我们在使用EXCEL做账时,经常要将货币用中文大写表示,将下列公式复制到单元格,在A1单元格输入货币数字,公式所在单元格就会自动转换成大写中文货币形式,非常简便使用。在实际使用中,可以将公式中的A1改换成任意指定的单元格。
=SUBSTITUTE(SUBSTITUTE(TEXT(TRUNC(FIXED(A1)),"[dbnum2]G/通用格式元;负[dbnum2]G/通用格式元;"&IF(A1>-0.5%,,"负"))&TEXT(RIGHT(FIXED(A1),2),"[dbnum2]0角0分;;"&IF(ABS(A1)>1%,"整",)),"零角",IF(ABS(A1)<1,,"零")),"零分","整")
参考blog文章:http://mymz.blog.hexun.com/24997382_d.html
B. 如何在excel中设置公式将数字转换为英文大写金额
使用数字转英文货币大写“自定义函数”,具体使用方法如下:
所需材料:Excel、数字转英文货币大写自定义函数(可通过网络复制粘贴)。
一、首先打开Excel表格文件,按Alt+F11打开VBA窗口,插入一个“模块”。
C. excel里如何把数字转换成英文货币表达
看这里吧,微软的帮助
http://support.microsoft.com/kb/213360
不过结果跟你的要求少有不同
=SpellNumber(200)
显示
Two Hundred Dollars and No Cents
D. excel怎么设置把金额自动转化为英文大写
按Alt-F11, 调出VBA,选插入->模块,然后在窗口中输入后面所附代码,按Alt-Q退出。
然后在需要英文数字的地方输入公式=SpellNumber(A1),A1根据你数字的那个单元格进行修改。
就可以了。
'****************
' Main Function *
'****************
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 = "U.S. Dollars Zero"
Case "One"
Dollars = "U.S. Dollars One"
Case Else
Dollars = "U.S. Dollars " & Dollars
End Select
Select Case Cents
Case ""
Cents = " and Cents Zero"
Case "One"
Cents = " and One Cent"
Case Else
Cents = " and Cents " & Cents
End Select
SpellNumber = “Say ” & Dollars & Cents & "Only***"
SpellNumber = UCase(SpellNumber)
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
E. excel 如何让小写的数字变成大写的
1、首先打开Excel表格,输入需要转换成大写的数字。
F. 在excel中将货币数字转换成大写
我们都知道excel可以做很多会计上做的工作,excel小技巧也有很多,今天我们就来一起学习一个在excel中将货币数字转换成大写,具体方法如下:
1、分别选中E11、F11、G11单元格,依次输入公式:=TEXT(INT(ABS(C10)),"[DBNum2]G/通用格式")、=TEXT(INT(ABS(C10*10))-INT(ABS(C10))*10,"[DBNum2]G/通用格式")、=TEXT(INT(ABS(C10*100)) -INT(ABS(C10*10))*10,"[DBNum2]G/通用格式")。上述公式的含义是:分别确定统计结果的元、角、分的数值,并将其转换为中文大写格式。
2、选中E10单元格,输入公式:=D11&E11&"元"&F11&"角"&G11&"分"或 =CONCATENATE(D11,E11,"元",F11,"角",G11, "分")。上述公式的含义是:将D11至G11单元格中的文本组合为一个整体,并在相应位置加上单位“元、角、分”文字。
3、鼠标左击11行的行标,选中该行,右击鼠标,选“隐藏”选项,将11行隐藏起来,不影响正常打印。至此,转换工作结束,效果如图所示。
以上就是我们在excel中将货币数字转换成大写的方法,大家可以根据自己的需要来使用,同时也可以根据自己的聪明才智发现更多的小技巧。
G. Excel中怎么将一个单元格中的金额数字转换成英文大写金额
英文金额没大写,只有中国有大写,你的意识是前面加美元或者英镑的符号?单元格式里面点货币,各种货币格式都有
H. 求在excel表中如何将数字转换成英文货币大写谢谢!
选中数字单元格,“格式”,“单元格”,“数字”选项卡,“分类”下选择“会计专用”或“货币”均可。可以选择各国货币符号。
I. 请问在excel表格中,怎样把钱数由数字变换成英文单词表示,比如说456,直接转换成four hundred fivty-six
这个有点麻烦哦。不过做一次,以后一劳永逸。
启动 Microsoft Excel。
按 Alt+F11 启动 Visual Basic 编辑器。
在“插入”菜单上,单击“模块”。
在模块表中键入下面的代码。
Option Explicit
'Main Function
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 = "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
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
如何使用 SpellNumber 示例函数要使用该示例函数将某数字更改为书面文本,请使用下列示例中演示的方法之一:方法 1:直接输入通过将下面的公式输入单元格中,可以将 32.50 更改为“Thirty Two Dollars and Fifty Cents”:
=SpellNumber(32.50)
方法 2:单元格引用可以引用工作簿中的其他单元格。例如,在单元格 A1 中输入数字 32.50,然后在另一单元格中键入下面的公式:
=SpellNumber(A1)
方法 3:粘贴函数或插入函数可以使用“粘贴函数”(在 Excel 2000 和 Excel 2002 中)或“插入函数”(在 Excel 2003 中)来将自定义函数输入工作表中。Excel 2000 和 Excel 2002要使用“粘贴函数”,请按照下列步骤操作:
选择所需的单元格。
单击“常用”工具栏中的“粘贴函数”。
在“函数类别”下,单击“用户定义”。
在“函数名称”下,单击“SpellNumber”,然后单击“确定”。
输入所需的数字或单元格引用,然后单击“确定”。
单击“完成”。
Excel 2003要使用“插入函数”,请按照下列步骤操作:
选择所需的单元格。
单击“常用”工具栏中的“插入函数”。
在“或选择类别”下,单击“用户定义”。
在“选择函数”列表中,单击“SpellNumber”,然后单击“确定”。
输入所需的数字或单元格引用,然后单击“确定”。
J. 表格里边如何将数字转换成大写 货币的大写
=
SUBSTITUTE
(SUBSTITUTE(IF(A1>-0.5%,,"负")&TEXT(INT(FIXED(ABS(A1))),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(FIXED(A1),2),"[dbnum2]0角0分;;"&IF(ABS(A1)>1%,"整",)),"零角",IF(ABS(A1)<1,,"零")),"零分","整")
更符合货币大写的要求,而且超出亿位数也不会报错。