可以自定义格式:
[DBNum2][$RMB]"合计(大写)"G/通用格式;[红色][DBNum2][$RMB]G/通用格式
输入
="合计(大写)"&SUBSTITUTE(SUBSTITUTE(IF(A1>-0.5%,,"负")&TEXT(INT(FIXED(ABS(A1))),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(FIXED(A1),2),"[dbnum2]0角0分;;"&IF(ABS(A1)>1%,"整",)),"零角",IF(ABS(A1)<1,,"零")),"零分","整")
回车。
="合计(大写)"&SUBSTITUTE(SUBSTITUTE(TEXT(TRUNC(FIXED(A1)),"[>0][dbnum2];[<0]负[dbnum2];;")&TEXT(RIGHT(FIXED(A1),2),"元[dbnum2]0角0分;;"&IF(ABS(A1)>1%,"元整",)),"零角",IF(ABS(A1)<1,,"零")),"零分","整")
=NUMBERSTRING(INT(G9/1)*1,2)&"元整"
G9修改为要大写的数的位置,后面元整也可以修改
如图:
d1单元格公式为:
=text(c1,"[dbnum2][$-804]本年度合计(g/通用格式)元")
ok