当前位置首页 > Ubuntu知识

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

阅读次数:1603 次  来源:admin  发布时间:

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中特有的格式

上一篇:linux之crontab(定时任务)
下一篇:Win7下Tomcat7和Apache2.2集成-java线程例子