原帖由 hyfgb 于 2009-8-13 18:21 发表
我们这小地方的银行比较垃圾,必须按照他们的要求填写,
所以请高手们想想办法,先谢谢了
人民银行在《正确填写票据和结算凭证的基本规定》中明确规定了阿拉伯金额数字万位和元位是"0",或者数字中间连续有几个"0",万位、元位也是"0",但千位、角位不是"0"时,中文大写金额中可以只写一个零字,也可以不写"零"字。如¥1680.32,应写成人民币壹仟陆佰捌拾元零叁角贰分,或者写成人民币壹仟陆佰捌拾元叁角贰分,又如¥107000.53,应写成人民币壹拾万柒仟元零伍角叁分,或者写成人民币壹拾万零柒仟元伍角叁分。应建议银行工作人员重新学习一下人民银行的《正确填写票据和结算凭证的基本规定》,在工作中灵活运用。
式中B20单元格是小写数字。
=IF(B20<0,"负","")&IF(B20=0,"",IF(ABS(B20)<0.995,"",IF(AND(RIGHT(INT(ROUND(ABS(B20),2)/10000))="0",RIGHT(INT(ROUND(ABS(B20),2)/1000))<>"0"),SUBSTITUTE(TEXT(INT(ROUND(ABS(B20),2)),"[DBNum2]"),"万","万零"),TEXT(INT(ROUND(ABS(B20),2)),"[DBNum2]"))&"元")&IF(RIGHT(TEXT(B20,".00"),2)*1=0,IF(ABS(B20)<0.005,"","整"),IF(ABS(B20)<0.095,"",IF((LEFT(RIGHT(TEXT(B20,".00"),2))<>"0")*(ABS(B20)>=1),IF(RIGHT(TRUNC(B20),1)>0,"","零"),"")&TEXT(LEFT(RIGHT(TEXT(B20,".00"),2)),"[dbnum2]"))&IF(LEFT(RIGHT(TEXT(B20,".00"),2))*1=0,"","角")&IF(RIGHT(TEXT(B20,".00"))*1=0,"整",TEXT(RIGHT(TEXT(B20,".00")),"[dbnum2]")&"分")))
[ 本帖最后由 jsrccb502803 于 2009-8-14 15:09 编辑 ] |