|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
=IF(TRUNC(C7,0)=C7,TEXT(C7,"[DBNum2]G/通用格式")&"元整",IF(TRUNC(C7,1)=C7,TEXT(TRUNC(C7,0),"[DBNum2]G/通用格式")&"元"&TEXT((C7-TRUNC(C7,0))*10,"[DBNum2]0")&"角整",IF(TRUNC(C7,1)=TRUNC(C7,0),TEXT(TRUNC(C7,0),"[DBNum2]G/通用格式")&"元"&"零"&TEXT((C7-TRUNC(C7,1))*100,"[DBNum2]0")&"分",TEXT(TRUNC(C7,0),"[DBNum2]G/通用格式")&"元"&TEXT((C7-TRUNC(C7,0))*10,"[DBNum2]0")&"角"&TEXT((C7-TRUNC(C7,1))*100,"[DBNum2]0")&"分")))
见贴:http://club.excelhome.net/thread-1226866-1-1.html
有没有错的? |
|