|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt;"><span lang="EN-US"><font face="Times New Roman">考虑负数、零及四舍五入:=IF(LEFT(A1)="-",REPLACEB("-",1,1,"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">(负)</span><span lang="EN-US"><font face="Times New Roman">"),"")&IF(ABS(ROUND(A1,2))<1,SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(RIGHT(TRUNC(ROUND(A1,2)*10,0)),"[dbnum2]")&"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">角</span><span lang="EN-US"><font face="Times New Roman">"&TEXT(RIGHT(TRUNC(ROUND(A1,2)*100,0)),"[dbnum2]")&"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">分</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">零角零分</span><span lang="EN-US"><font face="Times New Roman">",""),"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">零角</span><span lang="EN-US"><font face="Times New Roman">",""),"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">零分</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">整</span><span lang="EN-US"><font face="Times New Roman">"),TEXT(INT(ROUND(A1,2)),"[dbnum2]")&"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">元</span><span lang="EN-US"><font face="Times New Roman">"&SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(RIGHT(TRUNC(ROUND(A1,2)*10,0)),"[dbnum2]")&"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">角</span><span lang="EN-US"><font face="Times New Roman">"&TEXT(RIGHT(TRUNC(ROUND(A1,2)*100,0)),"[dbnum2]")&"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">分</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">零角零分</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">整</span><span lang="EN-US"><font face="Times New Roman">"),"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">零角</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">零</span><span lang="EN-US"><font face="Times New Roman">"),"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">零分</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: "Times New Roman"; mso-hansi-font-family: "Times New Roman";">整</span><span lang="EN-US"><font face="Times New Roman">"))</font></span></p> |
|