想在服务端命令中添加个数值转大写金额的公式的,公式相同,但在Excel中执行和在服务端命令中结果不一样,在服务端命令中输出没有“整”字,但在Excel中执行却有,是怎么回事儿
=IF(TRIM(数字)="","",IF(数字=0,"",IF(数字<0,"负","")&IF(INT(数字),TEXT(INT(ABS(数字)),"[dbnum2]")&"元","")&IF(INT(ABS(数字)*10)-INT(ABS(数字))*10,TEXT(INT(ABS(数字)*10)-INT(ABS(数字))*10,"[dbnum2]")&"角",IF(INT(ABS(数字))=ABS(数字),"",IF(ABS(数字)<0.1,"","零")))&IF(ROUND(ABS(数字)*100-INT(ABS(数字)*10)*10,)<>0,TEXT(ROUND(ABS(数字)*100-INT(ABS(数字)*10)*10,),"[dbnum2]")&"分",IF(INT(数字)=数字,"整",""))))
|