excel中输入小写数字后,怎样可显示大写金额
发布网友
发布时间:2022-05-05 17:34
我来回答
共1个回答
热心网友
时间:2022-06-27 20:44
假设小写数字在A1,在需要显示大写金额的单元格中输入以下公式:
=IF(A1<0,"负","")&IF(ABS(A1)>1,TEXT(TRUNC(ABS(ROUND(A1,2))),"[DBNum2]")&"元","")&IF(ISERR(FIND(".",ROUND(A1,2))),"",TEXT(RIGHT(TRUNC(ROUND(A1,2)*10)),"[DBNum2]"))&IF(ISERR(FIND(".0",TEXT(A1,"0.00"))),"角","")&IF(LEFT(RIGHT(ROUND(A1,2),3))=".",TEXT(RIGHT(ROUND(A1,2)),"[DBNum2]")&"分","整")