本帖最后由 青い契り 于 2013-2-5 09:04 编辑
小数点第三位不做四舍五入的如下:
=IF(LEN(A1-INT(A1))=1,NUMBERSTRING(A1,2)&"元整",IF(MID(A1,FIND(".",A1)+2,1)="",NUMBERSTRING(INT(A1),2)&"元"&NUMBERSTRING(MID(A1,FIND(".",A1)+1,1),2)&"角",NUMBERSTRING(INT(A1),2)&"元"&NUMBERSTRING(MID(A1,FIND(".",A1)+1,1),2)&"角"&NUMBERSTRING(MID(A1,FIND(".",A1)+2,1),2)&"分"))
小数点第三位做四舍五入的如下:
=IF(ISERROR(FIND(".",A4))=TRUE,TEXT(A4,"[DBNum2][$-804]G/通用格式元整"),IF(LEN(RIGHT(A4,LEN(A4)-FIND(".",A4)))>=2,TEXT(LEFT(A4,FIND(".",A4)-1),"[DBNum2][$-804]G/通用格式元")&TEXT(RIGHT(FIXED(A4,2),2),"[DBnum2]#角#分"),TEXT(LEFT(A4,FIND(".",A4)-1),"[DBNum2][$-804]G/通用格式元")&TEXT(RIGHT(FIXED(A4,1),1),"[DBnum2]#角")))
内置函数没有元整的体现。
|