|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
那条公式是不行的,用这条可以:
=IF((A21/100)<0,REPLACE(IF(TRUNC((A21/100))=(A21/100),TEXT((A21/100),"[DBNum2]")&"元整",IF(TRUNC((A21/100)*10)=(A21/100)*10,TEXT(TRUNC((A21/100)),"[DBNum2]")&"元"&TEXT(RIGHT((A21/100)),"[DBNum2]")&"角整",TEXT(TRUNC((A21/100)),"[DBNum2]")&"元"&IF(ISNUMBER(FIND(".0",(A21/100))),"零",TEXT(LEFT(RIGHT((A21/100),2)),"[DBNum2]")&"角")&TEXT(RIGHT((A21/100)),"[DBNum2]")&"分")),1,1,"负"),IF(TRUNC((A21/100))=(A21/100),TEXT((A21/100),"[DBNum2]")&"元整",IF(TRUNC((A21/100)*10)=(A21/100)*10,TEXT(TRUNC((A21/100)),"[DBNum2]")&"元"&TEXT(RIGHT((A21/100)),"[DBNum2]")&"角整",TEXT(TRUNC((A21/100)),"[DBNum2]")&"元"&IF(ISNUMBER(FIND(".0",(A21/100))),"零",TEXT(LEFT(RIGHT((A21/100),2)),"[DBNum2]")&"角")&TEXT(RIGHT((A21/100)),"[DBNum2]")&"分"))) |
|