发布网友 发布时间:2022-04-23 12:59
共4个回答
热心网友 时间:2023-10-14 13:14
假设数字在D110格,则可在你需要输入的单元格输入以下公式:
=IF(ROUND(D110,2)<0,"金额不能为负",IF(ROUND(D110,2)=0,"零",IF(ROUND(D110,2)<1,"",TEXT(INT(ROUND(D110,2)),"[dbnum2]")&"元")&IF(INT(ROUND(D110,2)*10)-INT(ROUND(D110,2))*10=0,IF(INT(ROUND(D110,2))*(INT(ROUND(D110,2)*100)-INT(ROUND(D110,2)*10)*10)=0,"","零"),TEXT(INT(ROUND(D110,2)*10)-INT(ROUND(D110,2))*10,"[dbnum2]")&"角")&IF((INT(ROUND(D110,2)*100)-INT(ROUND(D110,2)*10)*10)=0,"整",TEXT((INT(ROUND(D110,2)*100)-INT(ROUND(D110,2)*10)*10),"[dbnum2]")&"分")))
此公式带错误提示,比较实用。
热心网友 时间:2023-10-14 13:15
假设数字在A3格,则B3格可以列公式:
=IF((INT(A3*10)-INT(A3)*10)=0,TEXT(INT(A3),"[DBNum2]G/通用格式")&"元"&IF((INT(A3*100)-INT((A3)*10)*10)=0,"整","零"&TEXT(INT(A3*100)-INT(A3*10)*10,"[DBNum2]G/通用格式")&"分"),TEXT(INT(A3),"[DBNum2]G/通用格式")&"元"&IF((INT(A3*100)-INT((A3)*10)*10)=0,TEXT((INT(A3*10)-INT(A3)*10),"[DBNum2]G/通用格式")&"角整",TEXT((INT(A3*10)-INT(A3)*10),"[DBNum2]G/通用格式")&"角"&TEXT(INT(A3*100)-INT(A3*10)*10,"[DBNum2]G/通用格式")&"分"))
参考资料:http://bbs.cfan.com.cn/redirect.php?fid=47&tid=262569&goto=nextnewset
热心网友 时间:2023-10-14 13:15
设置单元格格式->数字->选特殊->中文大写数字
但角、分的单位不行
热心网友 时间:2023-10-14 13:16
你用票据通可以实现
热心网友 时间:2023-10-14 13:14
假设数字在D110格,则可在你需要输入的单元格输入以下公式:
=IF(ROUND(D110,2)<0,"金额不能为负",IF(ROUND(D110,2)=0,"零",IF(ROUND(D110,2)<1,"",TEXT(INT(ROUND(D110,2)),"[dbnum2]")&"元")&IF(INT(ROUND(D110,2)*10)-INT(ROUND(D110,2))*10=0,IF(INT(ROUND(D110,2))*(INT(ROUND(D110,2)*100)-INT(ROUND(D110,2)*10)*10)=0,"","零"),TEXT(INT(ROUND(D110,2)*10)-INT(ROUND(D110,2))*10,"[dbnum2]")&"角")&IF((INT(ROUND(D110,2)*100)-INT(ROUND(D110,2)*10)*10)=0,"整",TEXT((INT(ROUND(D110,2)*100)-INT(ROUND(D110,2)*10)*10),"[dbnum2]")&"分")))
此公式带错误提示,比较实用。
热心网友 时间:2023-10-14 13:15
假设数字在A3格,则B3格可以列公式:
=IF((INT(A3*10)-INT(A3)*10)=0,TEXT(INT(A3),"[DBNum2]G/通用格式")&"元"&IF((INT(A3*100)-INT((A3)*10)*10)=0,"整","零"&TEXT(INT(A3*100)-INT(A3*10)*10,"[DBNum2]G/通用格式")&"分"),TEXT(INT(A3),"[DBNum2]G/通用格式")&"元"&IF((INT(A3*100)-INT((A3)*10)*10)=0,TEXT((INT(A3*10)-INT(A3)*10),"[DBNum2]G/通用格式")&"角整",TEXT((INT(A3*10)-INT(A3)*10),"[DBNum2]G/通用格式")&"角"&TEXT(INT(A3*100)-INT(A3*10)*10,"[DBNum2]G/通用格式")&"分"))
参考资料:http://bbs.cfan.com.cn/redirect.php?fid=47&tid=262569&goto=nextnewset
热心网友 时间:2023-10-14 13:15
设置单元格格式->数字->选特殊->中文大写数字
但角、分的单位不行
热心网友 时间:2023-10-14 13:16
你用票据通可以实现