Ubuntu18.04, WPS表格生成中文大写数字的script

=IF(ROUND(J9,2)<0,"无效数值",IF(ROUND(J9,2)=0,"零",IF(ROUND(J9,2)<1,"",TEXT(INT(ROUND(J9,2)),"[DBNum2][$-804]General")&"元")&IF(INT(ROUND(J9,2)*10)-INT(ROUND(J9,2))*10=0,IF(INT(ROUND(J9,2))*(INT(ROUND(J9,2)*100)-INT(ROUND(J9,2)*10)*10)=0,"","零"),TEXT(INT(ROUND(J9,2)*10)-INT(ROUND(J9,2))*10,"[DBNum2][$-804]General")&"角")&IF((INT(ROUND(J9,2)*100)-INT(ROUND(J9,2)*10)*10)=0,"整",TEXT((INT(ROUND(J9,2)*100)-INT(ROUND(J9,2)*10)*10),"[DBNum2][$-804]General")&"分")))

其中 [DBNum2][$-804]General 这个是WPS中特有的格式

posted on 2018-07-18 13:29  Milton  阅读(419)  评论(0编辑  收藏  举报

导航