EXCEL 自动生成大写金额涵数? 20
=SUBSTITUTE(SUBSTITUTE(TEXT(TRUNC(FIXED(A2)),"[>0][dbnum2]G/通用格式元;[<0]负[dbnum2]G/通用格式...
=SUBSTITUTE(SUBSTITUTE(TEXT(TRUNC(FIXED(A2)),"[>0][dbnum2]G/通用格式元;[<0]负[dbnum2]G/通用格式元;;")&TEXT(RIGHT(FIXED(A2),2),"[dbnum2]0角0分;;"&IF(ABS(A2)>1%,"整",)),"零角",IF(ABS(A2)<1,,"零")),"零分","整")
这条函数能完成大写金额生成
现在的问题是我要输入 ¥1234567.89
得出的大写金额是:壹佰贰拾叁万肆仟伍佰陆拾柒元捌角玖分
(就是输入时是有个“¥”的问题)
求EXCEL大神帮忙 展开
这条函数能完成大写金额生成
现在的问题是我要输入 ¥1234567.89
得出的大写金额是:壹佰贰拾叁万肆仟伍佰陆拾柒元捌角玖分
(就是输入时是有个“¥”的问题)
求EXCEL大神帮忙 展开
5个回答
展开全部
把你的公式改为
=SUBSTITUTE(SUBSTITUTE(IF(SUBSTITUTE(A2,"¥","")<0,"负","")&TEXT(TRUNC(ABS(ROUND(SUBSTITUTE(A2,"¥",""),2))),"[DBNum2]")&"元"&IF(ISERR(FIND(".",ROUND(SUBSTITUTE(A2,"¥",""),2))),"",TEXT(RIGHT(TRUNC(ROUND(SUBSTITUTE(A2,"¥",""),2)*10)),"[DBNum2]"))&IF(ISERR(FIND(".0",TEXT(SUBSTITUTE(A2,"¥",""),"0.00"))),"角","")&IF(LEFT(RIGHT(ROUND(SUBSTITUTE(A2,"¥",""),2),3))=".",TEXT(RIGHT(ROUND(SUBSTITUTE(A2,"¥",""),2)),"[DBNum2]")&"分",IF(ROUND(SUBSTITUTE(A2,"¥",""),2)=0,"","整")),"零元零",""),"零元","零")
向下自动填充即可
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
这个函数公式不可以吗?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询