1 / 6
文档名称:

在Excel中根据小写的金额自动生成大写金额.doc.doc

格式:doc   页数:6
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

在Excel中根据小写的金额自动生成大写金额.doc.doc

上传人:jewfhh 2015/9/13 文件大小:0 KB

下载得到文件列表

在Excel中根据小写的金额自动生成大写金额.doc.doc

相关文档

文档介绍

文档介绍:在Excel中根据小写的金额自动生成大写金额
2008年05月24日星期六 10:44
在Excel中,我想根据小写的金额自动生成大写金额
例一:
问:
如附件所示,我希望根据已有的小写金额让Excel自动生成规范的大写金额。
谢谢!
附件:
答案一:
=IF(ISNUMBER(A3),IF(INT(A3),TEXT(INT(A3),"[dbnum2]")&"元",)&IF(INT(A3*10)-INT(A3)*10,TEXT(INT(A3*10)-INT(A3)*10,"[dbnum2]")&"角",IF(INT(A3)=A3,,IF(A3<,,"零")))&IF(ROUND((A3)*100-INT(A3*10)*10,),TEXT(ROUND(A3*100-INT(A3*10)*10,),"[dbnum2]")&"分","整"),"")
附件:
答案二:
给你一个,放在工具里:
Function convert_digital_chinese(ByVal Myinput)
Dim Temp, TempA, MyinputA, MyinputB, MyinputC
Dim Place As String
Dim J As Integer
Place = "分角元拾佰仟万拾佰仟亿拾佰仟万"
shuzi1 = "壹贰叁肆伍陆柒捌玖"
shuzi2 = "整零元零零零万零零零亿零零零万"
qianzhui = ""
If Myinput < 0 Then qianzhui = "负"
Myinput = Int(Abs(Myinput) *
100 + )
If Myinput > 999999999999999# Then
mychange = "数字太大了吧???"
Exit Function
End If
If Myinput = 0 Then
mychange = "零元零分"
Exit Function
End If
MyinputA = Trim(Str(Myinput))
shuzilong = Len(MyinputA)
For J = 1 To shuzilong
MyinputB = Mid(MyinputA, J, 1) & MyinputB
Next
For J = 1 To shuzilong
Temp = Val(Mid(MyinputB, J, 1))
If Temp = 0 Then
MyinputC = Mid(shuzi2, J, 1) & MyinputC
Else
MyinputC = Mid(shuzi1, Temp, 1) & Mid(Place, J, 1) & MyinputC
End If
Next
shuzilong = Len(MyinputC)
For J = 1 To shuzilong - 1
If Mid(MyinputC, J, 1) = "
零" Then
Select Case Mid(MyinputC, J + 1, 1)