在日常签合同的过程中,总价根据EXCEL的自动求和功能算好后,还需要写上大写的总价,挺麻烦的,一不小还写错了,那有没有让电脑自动算出大写的总价,办法是有的,请在单元写如下公式:
=IF(C4<0,"金额为负无效",IF(OR(C4=0,C4=""),"零元整",IF(C4<1,"",TEXT(INT(C4),"[dbnum2]G/通用格式")&"元"))) & IF(INT(C4*10)-INT(C4)*10=0,IF(INT(C4)*(INT(C4*100)-INT(C4*10)*10)=0,"","零"),TEXT(INT(C4*10)-INT(C4)*10,"[dbnum2]")&"角")&IF((INT(C4*100)-INT(C4*10)*10)=0,"整",TEXT((INT(C4*100)-INT(C4*10)*10),"[dbnum2]")&"分")
其中C4改成需要目标单元格.这样只要算出小写的数字,自动会转换成大写的数字。