excel 数字小写转大写的函数公式比如 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]")&"分")))))只能转成 壹佰贰拾万叁仟零贰元零贰分
问题描述:
excel 数字小写转大写的函数公式
比如 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]")&"分")))))
只能转成 壹佰贰拾万叁仟零贰元零贰分
答
我有一个自定义函数,你看看合用不?Function 大写(m)大写 = IIf(m = "","",IIf(m > -0.005,"","负") & IIf(Abs(m) + 0.005