问题补充说明:比如 a1单元格中的数字:1203002.02 在f17中 转换为 壹佰贰拾万零叁仟零贰元零贰分 我现有的公式 =IF(F17=0,"",(TEXT(ROUNDDOWN(F17,0),"[DBNum2]")&"元"&IF(ROUNDDOWN(F17,0)=F17,"整",IF(ROUNDDOWN(F17*10,0)=F17*10,TEXT(RIGHT(F17*10,1),"[DBNum2]")&"角整",IF(ROUNDDOWN(F17*10,0)=ROUNDDOWN(F17,0)*10,"零"&TEXT(RIGHT(F17*100,1),"[DBNum2]")&"分",TEXT(RIGHT(ROUNDDOWN(F17*10,0),1),"[DBNum2]")&"角"&TEXT(RIGHT(F17*100,1),"[DBNum2]")&"分")))))只能转成 壹佰贰拾万叁仟零贰元零贰分请高手指教
我有一个自定义函数,来自你看看合用不?
Func360问答tion大写(m)
束认事棉拿而后十跟大写=IIf(m="","",IIf(m>-0.005,"","负")&IIf(Abs(m)+0.005<1济云烟举且时善,"","计"&***.text(Int(Round(Abs(m),2)),"[DBnum2]")&"元")&***.text(Right(100*Round(m,2),2),"[dbnum2]0角0分"))
大写=Replace(Replace(大写,"零角",IIf(Abs(m专)>1AndRight(Round(100顶*m,0),1),"零","")),"零分",IIf(Round(m,2),"整",""))
EndFunc刚tion
如果你不会别补用,给我留言