在编制工程价款的时候经常会遇到需要填写中文大写金额的时候,直接用输入法的话在金额变更后还要重新修改,非常的麻烦,下面的Excel公式可以根据阿拉伯数字自动生成大写中文金额
1 |
=IF(ISNUMBER(B4),IF(INT(B4),TEXT(INT(B4),"[dbnum2]")&"元",)&IF(INT(B4*10)-INT(B4)*10,TEXT(INT(B4*10)-INT(B4)*10,"[dbnum2]")&"角",IF(INT(B4)=B4,,IF(B4<0.1,,"零")))&IF(ROUND((B4)*100-INT(B4*10)*10,),TEXT(ROUND(B4*100-INT(B4*10)*10,),"[dbnum2]")&"分","整"),"") |
其中,B4为阿拉伯数字所在单元格,需要更改,可以先复制到记事本中进行替换后再粘帖到Excel中
There are no comments yet