把表格的貨幣數字變成英文大寫
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,,"零")),"零分","整")
更符合貨幣大寫的要求,而且超出億位數也不會報錯。