本帖最后由 wshcw 于 2012-4-26 22:48 编辑
wshcw 发表于 2012-4-26 20:44
小小的变通就可以了:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(IF(-RMB(A1,2),TEXT(A1,";负")&TEXT(INT(ABS( ...
再简化几字:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(IF(-RMB(A1,2),TEXT(A1,";负")&TEXT(INT(ABS(A1)+0.5%),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(RMB(A1,2),2),"[dbnum2]0角0分;;整"),),"零角",IF(A1^2<1,,"零")),"万",IF((MOD(ABS(A1%%),10)<1)*(MOD(ABS(A1%%),10)>=0.1),"万零","万")),"零分","整")
或者:
=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(IF(-RMB(A1,2),TEXT(A1,";负")&TEXT(INT(ABS(A1)+0.5%),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(RMB(A1,2),2),"[dbnum2]0角0分;;整"),),"零角",IF(A1^2<1,,"零")),"万","万"&IF((MOD(ABS(A1%%),10)<1)*(MOD(ABS(A1%%),10)>=0.1),"零",)),"零分","整") |