首页 热点资讯 义务教育 高等教育 出国留学 考研考公

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

发布网友 发布时间:2022-04-27 02:19

我来回答

4个回答

热心网友 时间:2022-06-22 06:07

用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)&"分"))

热心网友 时间:2022-06-22 06:07

如果只有两种货币。
=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)&"美分")))

热心网友 时间:2022-06-22 06:08

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语言才行。

热心网友 时间:2022-06-22 06:09

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

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com