可以直接将单元格格式改为 特殊 里面的中文大写,
另外就是公式
数字在A1
B1输入公式
=IF(ABS(A1)<0.005,"",IF(A1<0,"负",)&IF(INT(ABS(A1)),TEXT(INT(ABS(A1)),"[dbnum2]")&"元",)&IF(INT(ABS(A1)*10)-INT(ABS(A1))*10,TEXT(INT(ABS(A1)*10)-INT(ABS(A1))*10,"[dbnum2]")&"角",IF(INT(ABS(A1))=ABS(A1),,IF(ABS(A1)<0.1,,"零")))&IF(ROUND(ABS(A1)*100-INT(ABS(A1)*10)*10,),TEXT(ROUND(ABS(A1)*100-INT(ABS(A1)*10)*10,),"[dbnum2]")&"分","整"))
首先选中要转换的小数字,单击鼠标右键,选择“设置单元格格式”,
选择“数字”,在 分类 栏中行选“特殊”, 右边有“类型”中选“中文大写数字”就可以了。
注:下面的“设置区域(国家/地区)”需选“中文(中国)”。
=IF(H29="","",IF(H29<0,"无效数值",IF(INT(H29),TEXT(INT(H29),"[dbnum2]")&"元",)&IF(INT(H29*10)-INT(H29)*10,TEXT(INT(H29*10)-INT(H29)*10,"[dbnum2]")&"角",IF(INT(H29)=H29,,IF(H29<0.1,,"零")))&IF(ROUND(H29*100-INT(H29*10)*10,),TEXT(ROUND(H29*100-INT(H29*10)*10,),"[dbnum2]")&"分","整")))
(只需将H29改成相应单元格即可)
上面的A1要改改好多个超麻烦,,,下面这个只需要改两处的A1即可超快=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(INT(A1*1),"[dbnum2];; ")&TEXT(MOD(A1*1*100,100),"[>9][dbnum2]元0角0分;[=0]元整;[dbnum2]元零0分"),"零分","整")," 元零",)," 元",)