展开全部
=IF(A1<0,"金额为负无效",IF(OR(A1=0,A1=""),"零元",IF(A1<1,"",TEXT(INT(A1),"[dbnum2]G/通用格式")&"元"))) & IF(INT(A1*10)-INT(A1)*10=0,IF(INT(A1)*(INT(A1*100)-INT(A1*10)*10)=0,"","零"),TEXT(INT(A1*10)-INT(A1)*10,"[dbnum2]")&"角")&IF((INT(A1*100)-INT(A1*10)*10)=0,"整",TEXT((INT(A1*100)-INT(A1*10)*10),"[dbnum2]")&"分")
或
=IF(A1<0,"(负)","")&TEXT(INT(ABS(A1)),"[dbnum2]")&"元"&IF(ABS(A1)-INT(ABS(A1))<0.005,"整",IF(INT(ROUND((ABS(A1)-INT(ABS(A1)))*100,0)/10)>0,TEXT(INT(ROUND((ABS(A1)-INT(ABS(A1)))*100,0)/10),"[dbnum2]")&"角","零")&IF(MOD(ROUND((ABS(A1)-INT(ABS(A1)))*100,0),10)>0,TEXT(MOD(ROUND((ABS(A1)-INT(ABS(A1)))*100,0),10),"[dbnum2]")&"分","整"))
或
=IF(A1<0,"(负)","")&TEXT(INT(ABS(A1)),"[dbnum2]")&"元"&IF(ABS(A1)-INT(ABS(A1))<0.005,"整",IF(INT(ROUND((ABS(A1)-INT(ABS(A1)))*100,0)/10)>0,TEXT(INT(ROUND((ABS(A1)-INT(ABS(A1)))*100,0)/10),"[dbnum2]")&"角","零")&IF(MOD(ROUND((ABS(A1)-INT(ABS(A1)))*100,0),10)>0,TEXT(MOD(ROUND((ABS(A1)-INT(ABS(A1)))*100,0),10),"[dbnum2]")&"分","整"))
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询