EXCEL如何将数字金额转换为中文大写美元

2024-12-01 03:34:21
推荐回答(4个)
回答1:

如果只有两种货币。
=IF(A3="HKD",IF(ROUND(A1,2)<0,"金额为负无效",IF(ROUND(A1,2)=0,"零元",IF(ROUND(A1,2)<1,"",TEXT(INT(ROUND(A1,2)),"[dbnum2]")&"元")&IF(INT(ROUND(A1,2)*10)-INT(ROUND(A1,2))*10=0,IF(INT(ROUND(A1,2))*(INT(ROUND(A1,2)*100)-INT(ROUND(A1,2)*10)*10)=0,"","零"),TEXT(INT(ROUND(A1,2)*10)-INT(ROUND(A1,2))*10,"[dbnum2]")&"角")&IF((INT(ROUND(A1,2)*100)-INT(ROUND(A1,2)*10)*10)=0,"整",TEXT((INT(ROUND(A1,2)*100)-INT(ROUND(A1,2)*10)*10),"[dbnum2]")&"分"))),IF(A1<0,"金额为负无效",IF(OR(A1=0,A1=""),"零美元",IF(A1-TRUNC(A1)=0,NUMBERSTRING(TRUNC(ROUND(A1,1),0),2)&"美元整",NUMBERSTRING(TRUNC(A1,0),2)&"美元"&TEXT(INT(ROUND(A1,2)*100)-INT(ROUND(A1,2))*100,"[dbnum2]")&"美分"))))

如果只是以美分为单位:
=IF(A3="HKD",IF(ROUND(A1,2)<0,"金额为负无效",IF(ROUND(A1,2)=0,"零元",IF(ROUND(A1,2)<1,"",TEXT(INT(ROUND(A1,2)),"[dbnum2]")&"元")&IF(INT(ROUND(A1,2)*10)-INT(ROUND(A1,2))*10=0,IF(INT(ROUND(A1,2))*(INT(ROUND(A1,2)*100)-INT(ROUND(A1,2)*10)*10)=0,"","零"),TEXT(INT(ROUND(A1,2)*10)-INT(ROUND(A1,2))*10,"[dbnum2]")&"角")&IF((INT(ROUND(A1,2)*100)-INT(ROUND(A1,2)*10)*10)=0,"整",TEXT((INT(ROUND(A1,2)*100)-INT(ROUND(A1,2)*10)*10),"[dbnum2]")&"分"))),IF(A1<0,"金额为负无效",IF(OR(A1=0,A1=""),"零美元",NUMBERSTRING(ROUND(A1,2)*100,2)&"美分")))

回答2:

用numberstring函数。
如:将a2单元格的531转换成大写,则公式
=numberstring(a2,2):此时得出:伍佰叁拾壹
=numberstring(a2,1):此时得出:五百三十一
=numberstring(a2,3):此时得出:五三一
如要将数字读出:则用此公式
=if(iserror(find(".",a2)),numberstring(int(a2),2)&"元整",if(iserror(numberstring(mid(a2,find(".",a2)+2,1),2)),numberstring(int(a2),2)&"元"&numberstring(mid(a2,find(".",a2)+1,1),2)&"角整",numberstring(int(a2),2)&"元"&numberstring(mid(a2,find(".",a2)+1,1),2)&"角"&numberstring(mid(a2,find(".",a2)+2,1),2)&"分"))

回答3:

1、使用函数,如:=IF(TRIM(Y25)="","",IF(Y25=0,"",IF(Y25<0,"负",)&IF(INT(Y25),TEXT(INT(ABS(Y25)),"[dbnum2]")&"元",)&IF(INT(ABS(Y25)*10)-INT(ABS(Y25))*10,TEXT(INT(ABS(Y25)*10)-INT(ABS(Y25))*10,"[dbnum2]")&"角",IF(INT(ABS(Y25))=ABS(Y25),,IF(ABS(Y25)<0.1,,"零")))&IF(ROUND(ABS(Y25)*100-INT(ABS(Y25)*10)*10,),TEXT(ROUND(ABS(Y25)*100-INT(ABS(Y25)*10)*10,),"[dbnum2]")&"分","整")))
2、使用宏,该方法个有点麻烦,必须懂得vb语言才行。

回答4:

如果我同时有三种货币,,人民币,港币,美元,,,那要怎么加上人民币的公式呢,,谢谢