Excel大写金额人民币

=IF(ROUND(C10,2)<0,"无效数值",IF(ROUND(C10,2)=0,"零",IF(ROUND(C10,2)<1,"",TEXT(INT(ROUND(C10,2)),"[dbnum2]")&"圆")&IF(INT(ROUND(C10,2)*10)-INT(ROUND(C10,2))*10=0,IF(INT(ROUND(C10,2))*(INT(ROUND(C10,2)*100)-INT(ROUND(C10,2)*10)*10)=0,"","零"),TEXT(INT(ROUND(C10,2)*10)-INT(ROUND(C10,2))*10,"[dbnum2]")&"角")&IF((INT(ROUND(C10,2)*100)-INT(ROUND(C10,2)*10)*10)=0,"整",TEXT((INT(ROUND(C10,2)*100)-INT(ROUND(C10,2)*10)*10),"[dbnum2]")&"分")))

 

-------------

使用时将 C10 替换为 目标金额 单元格 名称

发表于 2016-10-03 15:30  涂磊  阅读(228)  评论(0)  编辑  收藏
上一篇:C++/C 四舍五入函数


下一篇:Round Numbers POJ - 3252