又有牛人打破论坛记录了,参考: http://tieba.baidu.com/f?kz=337413440 请港澳台同胞用繁体版测试,看看繁体版是否适用172个字符的以下公式(也就是看看RMB函数是否可用于繁体版): =IF(-RMB(A1),SUBSTITUTE(SUBSTITUTE(IF(A1<0,"负",)&TEXT(INT(ABS(A1)+0.5%),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(RMB(A1),2),"[dbnum2]0角0分;;整"),"零角",IF(ABS(A1)<1,,"零")),"零分","整"),"") 我再次修改以上公式,最后简化为170字符: =SUBSTITUTE(SUBSTITUTE(IF(-RMB(A1),IF(A1<0,"负",)&TEXT(INT(ABS(A1)+0.5%),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(RMB(A1),2),"[dbnum2]0角0分;;整"),),"零角",IF(ABS(A1)<1,,"零")),"零分","整")
[此贴子已经被作者于2008-8-11 12:30:51编辑过] |