发布网友 发布时间:2022-05-14 23:34
共3个回答
热心网友 时间:2023-11-08 02:15
B1中输入热心网友 时间:2023-11-08 02:15
b1=IF(OR(A1="",A1=0),"",TEXT(INT(A1),"[dbnum2]")&IF(INT(A1)=A1,"元整","元")&IF(AND(INT(A1)<>A1,--RIGHT(INT(A1*10))=0),"零",TEXT(--RIGHT(INT(A1*10)),"[dbnum2]#角;;;"))&TEXT(--RIGHT(INT(A1*100)),"[dbnum2]#分;;")) ,就此公式直接连同等号复制到b1即可热心网友 时间:2023-11-08 02:15
=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]")&"分","整"))