发布网友 发布时间:2022-04-24 14:42
共4个回答
热心网友 时间:2023-10-16 23:17
给你编个公式吧
=IF(A2<0,"负","")&text(trunc(abs(round(a2,2))),"[dbnum2]")&"元"&if(iserr(find(".",round(a2,2))),"",text(right(trunc(round(a2,2)*10)),"[dbnum2]"))&if(iserr(find(".0",text(a2,"0.00"))),"角","")&if(left(right(round(a2,2),3))=".",TEXT(RIGHT(ROUND(A2,2)),"[DBNum2]")&"分","整")
其中"A2"是数字格,即需要转换为大写的那格。
热心网友 时间:2023-10-16 23:17
=SUBSTITUTE(SUBSTITUTE(IF(A1>-0.5%,,"负")&TEXT(INT(FIXED(ABS(A1))),"[dbnum2]G/通用格式元;;")&TEXT(RIGHT(FIXED(A1),2),"[dbnum2]0角0分;;"&IF(ABS(A1)>1%,"整",)),"零角",IF(ABS(A1)<1,,"零")),"零分","整")
将公式里的A1改为实际相应的单元格即可。
热心网友 时间:2023-10-16 23:18
输入公式:
=TEXT(INT(D25),"[DBNum2]G/通用格式")&"元"&IF((INT(D25*10)-INT(D25)*10)=0,"",TEXT(INT(D25*10)-INT(D25)*10,"[DBNum2]G/通用格式")&"角")&IF((INT(D25*100)-INT(D25*10)*10)=0,"整",TEXT(INT(D25*100)-INT(D25*10)*10,"[DBNum2]G/通用格式")&"分")
将公式中的D25替换为相应单元格。
热心网友 时间:2023-10-16 23:18
点了这后点右击设置单元格格式里面,