|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 mongren 于 2012-6-13 11:11 编辑
用这个实现金额小写转大写没错(E12是小写所在单元格,改下就是了):
=SUBSTITUTE(SUBSTITUTE(IF(E12>-0.5%,,"负")&TEXT(INT(ABS(E12)+0.5%),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(FIXED(E12),2),"[dbnum2]0角0分;;"&IF(ABS(E12)>1%,"整",)),"零角",IF(ABS(E12)<1,,"零")),"零分","整")
其实用下面这个就可以了,依我看上面公式中的(红色部分)&IF(ABS(E12)>1%,"整",)是多余的!
=SUBSTITUTE(SUBSTITUTE(IF(E12>-0.5%,,"负")&TEXT(INT(ABS(E12)+0.5%),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(FIXED(E12),2),"[dbnum2]0角0分;;"),"零角",IF(ABS(E12)<1,,"零")),"零分","整")
|
|