发布网友 发布时间:2022-04-19 12:27
共2个回答
热心网友 时间:2022-07-12 01:27
假设数据在A1
直接B1粘贴此公式
=SUBSTITUTE(SUBSTITUTE(IF(A1<0,"负","")&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]")&"分",IF(ROUND(A1,2)=0,"","整")),"零元零",""),"零元","零")
热心网友 时间:2022-07-12 01:27
但这种的话你可以直接想坐哪里看一下数据格式能不能设置,不能设置的话,那就只能自己手动更改。