首页 > 其他 > 详细

在Excel中将数字转换为大写

时间:2015-07-20 07:59:54      阅读:124      评论:0      收藏:0      [点我收藏+]

123.09 = 壹佰贰拾叁元零玖分

=SUBSTITUTE(SUBSTITUTE(IF(G10<0,"負","")&TEXT(TRUNC(ABS(ROUND(G10,2))),"[DBNum2]")&"元"&IF(ISERR(FIND(".",ROUND(G10,2))),"",TEXT(RIGHT(TRUNC(ROUND(G10,2)*10)),"[DBNum2]"))&IF(ISERR(FIND(".0",TEXT(G10,"0.00"))),"角","")&IF(LEFT(RIGHT(ROUND(G10,2),3))=".",TEXT(RIGHT(ROUND(G10,2)),"[DBNum2]")&"分",IF(ROUND(G10,2)=0,"","整")),"零元零",""),"零元","")



把G10改成你要的单元格

在Excel中将数字转换为大写

原文:http://www.cnblogs.com/suenihy/p/4660365.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!