发布网友 发布时间:2022-04-21 17:49
共1个回答
热心网友 时间:2024-03-05 09:42
假设你的那个数字在a1单元格,那么你在目标单元格内输入以下代码:
=if((int(a1*10)-int(a1)*10)=0,text(int(a1),"[dbnum2]g/通用格式")&"元"&if((int(a1*100)-int((a1)*10)*10)=0,"整","零"&text(int(a1*100)-int(a1*10)*10,"[dbnum2]g/通用格式")&"分"),text(int(a1),"[dbnum2]g/通用格式")&"元"&if((int(a1*100)-int((a1)*10)*10)=0,text((int(a1*10)-int(a1)*10),"[dbnum2]g/通用格式")&"角整",text((int(a1*10)-int(a1)*10),"[dbnum2]g/通用格式")&"角"&text(int(a1*100)-int(a1*10)*10,"[dbnum2]g/通用格式")&"分"))
直接回车搞定!