<p>你看这样行不?</p><p>1 =TEXT(INT(A5),"[dbnum2]")&"元"&IF(INT(A5*10)-INT(A5)*10=0,"",TEXT(INT(A5*10)-INT(A5)*10,"[dbnum2]")&"角")&IF(INT(A5*100)-INT(A5*10)*10=0,"整",TEXT(INT(A5*100)-INT(A5*10)*10,"[dbnum2]")&"分")</p><p>2 =IF(ROUND(A5,2)<0,"无效数值",IF(ROUND(A5,2)=0,"零",IF(ROUND(A5,2)<1,"",TEXT(INT(ROUND(A5,2)),"[dbnum2]")&"元")&IF(INT(ROUND(A5,2)*10)-INT(ROUND(A5,2))*10=0,IF(INT(ROUND(A5,2))*(INT(ROUND(A5,2)*100)-INT(ROUND(A5,2)*10)*10)=0,"","零"),TEXT(INT(ROUND(A5,2)*10)-INT(ROUND(A5,2))*10,"[dbnum2]")&"角")&IF((INT(ROUND(A5,2)*100)-INT(ROUND(A5,2)*10)*10)=0,"整",TEXT((INT(ROUND(A5,2)*100)-INT(ROUND(A5,2)*10)*10),"[dbnum2]")&"分")))</p><p>3 =IF(ISNUMBER(A7),IF(ROUND(A7,2)<0,"无效数值",IF(ROUND(A7,2)=0,"零",IF(ROUND(A7,2)<1,"",TEXT(INT(ROUND(A7,2)),"[dbnum2]")&"元")&IF(INT(ROUND(A7,2)*10)-INT(ROUND(A7,2))*10=0,IF((INT(ROUND(A7,2)*100)-INT(ROUND(A7,2)*10)*10)=0,"","零"),TEXT(INT(ROUND(A7,2)*10)-INT(ROUND(A7,2))*10,"[dbnum2]")&"角")&IF((INT(ROUND(A7,2)*100)-INT(ROUND(A7,2)*10)*10)=0,"整",TEXT((INT(ROUND(A7,2)*100)-INT(ROUND(A7,2)*10)*10),"[dbnum2]")&"分"))),"非数值!!!")</p> |