电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

在Excel中根据小写的金额自动生成大写金额VIP免费

在Excel中根据小写的金额自动生成大写金额_第1页
1/6
在Excel中根据小写的金额自动生成大写金额_第2页
2/6
在Excel中根据小写的金额自动生成大写金额_第3页
3/6
在Excel中根据小写的金额自动生成大写金额 2008年05月24日 星期六 10:44 在Excel中,我想根据小写的金额自动生成大写金额 例一: 问: 如附件所示,我希望根据已有的小写金额让Excel自动生成规范的大写金额。 谢谢! 附件:例表.人民币大小写之间的转换.xls 答案一: =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<0.1,,"零")))&IF(ROUND((A3)*100-INT(A3*10)*10,),TEXT(ROUND(A3*100-INT(A3*10)*10,),"[dbnum2]")&"分","整"),"") 附件:例表.人民币大小写之间的转换 2.xls 答案二: 给你一个,放在工具里: 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 + 0.5) 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) Case "零", "元", "万", "亿", "整": MyinputC = Left(MyinputC, J - 1) & Mid(MyinputC, J + 1, 30) J = J - 1 End Select End If Next shuzilong = Len(MyinputC) For J = 1 To shuzilong - 1 If Mid(MyinputC, J, 1) = "亿" And Mid(MyinputC, J + 1, 1) = "万" Then MyinputC = Left(Myin...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

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

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部