ExcelHome技术论坛

 找回密码
 免费注册

QQ登录

只需一步,快速开始

快捷登录

搜索
EH技术汇-专业的职场技能充电站 妙哉!函数段子手趣味讲函数 Excel服务器-会Excel,做管理系统 效率神器,一键搞定繁琐工作
HR薪酬管理数字化实战 Excel 2021函数公式学习大典 Excel数据透视表实战秘技 打造核心竞争力的职场宝典
让更多数据处理,一键完成 数据工作者的案头书 免费直播课集锦 ExcelHome出品 - VBA代码宝免费下载
用ChatGPT与VBA一键搞定Excel WPS表格从入门到精通 Excel VBA经典代码实践指南
123
返回列表 发新帖
楼主: azhxy

[求助] 求助:如何更好地实现大小写金额的转换?

[复制链接]

TA的精华主题

TA的得分主题

发表于 2006-1-13 20:01 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
第 <FONT color=red>13</FONT> 楼能用

TA的精华主题

TA的得分主题

发表于 2006-1-16 17:15 | 显示全部楼层
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件       ★免费下载 ★       ★ 使用帮助
<P 0cm 0cm 0pt"><FONT face="Times New Roman">2.</FONT>将<FONT face="Times New Roman">A1</FONT>中的<FONT face="Times New Roman">123</FONT>转换为大写的数字<FONT face="Times New Roman">,</FONT>公式如下<FONT face="Times New Roman">:</FONT></P>
<P 0cm 0cm 0pt">将<FONT face="Times New Roman">123</FONT>转换为<FONT face="Times New Roman">"</FONT>一百二十三<FONT face="Times New Roman">",</FONT>公式为<FONT face="Times New Roman">:=NUMBERSTRING(A1,1)</FONT></P>
<P 0cm 0cm 0pt">将<FONT face="Times New Roman">123</FONT>转换为<FONT face="Times New Roman">"</FONT>壹佰贰拾叁<FONT face="Times New Roman">",</FONT>公式为<FONT face="Times New Roman">:=NUMBERSTRING(A1,2)</FONT></P>
<P 0cm 0cm 0pt">将<FONT face="Times New Roman">123</FONT>转换为<FONT face="Times New Roman">"</FONT>一二三<FONT face="Times New Roman">",</FONT>公式为<FONT face="Times New Roman">:=NUMBERSTRING(A1,3)</FONT></P>

TA的精华主题

TA的得分主题

发表于 2007-5-26 16:45 | 显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用  · 内置多项VBA编程加强工具       ★ 免费下载 ★      ★使用手册
<p>求助:如何把下面这个函数变成EXCEL中的自定义函数</p><p>=IF(A9&lt;0,"负","")&amp;IF(TRUNC(ROUND(A9,2))=0,"",TEXT(TRUNC(ABS(ROUND(A9,2))),"[DBNum2]")&amp;"元")&amp;IF(ISERR(FIND(".",ROUND(A9,2))),"",IF(AND(LEFT(TRUNC(ROUND(A9,2)))="0",RIGHT(TRUNC(ROUND(A9,2)*10))="0"),,TEXT(RIGHT(TRUNC(ROUND(A9,2)*10)),"[DBNum2]")))&amp;IF(ISERR(FIND(".0",TEXT(A9,"0.00"))),"角","")&amp;IF(LEFT(RIGHT(ROUND(A9,2),3))=".",TEXT(RIGHT(ROUND(A9,2)),"[DBNum2]")&amp;"分"</p>

TA的精华主题

TA的得分主题

发表于 2007-8-12 23:25 | 显示全部楼层
[广告] 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: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">(负)</span><span lang="EN-US"><font face="Times New Roman">"),"")&amp;IF(ABS(ROUND(A1,2))&lt;1,SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(RIGHT(TRUNC(ROUND(A1,2)*10,0)),"[dbnum2]")&amp;"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">角</span><span lang="EN-US"><font face="Times New Roman">"&amp;TEXT(RIGHT(TRUNC(ROUND(A1,2)*100,0)),"[dbnum2]")&amp;"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">分</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">零角零分</span><span lang="EN-US"><font face="Times New Roman">",""),"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">零角</span><span lang="EN-US"><font face="Times New Roman">",""),"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">零分</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">整</span><span lang="EN-US"><font face="Times New Roman">"),TEXT(INT(ROUND(A1,2)),"[dbnum2]")&amp;"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">元</span><span lang="EN-US"><font face="Times New Roman">"&amp;SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(RIGHT(TRUNC(ROUND(A1,2)*10,0)),"[dbnum2]")&amp;"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">角</span><span lang="EN-US"><font face="Times New Roman">"&amp;TEXT(RIGHT(TRUNC(ROUND(A1,2)*100,0)),"[dbnum2]")&amp;"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">分</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">零角零分</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">整</span><span lang="EN-US"><font face="Times New Roman">"),"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">零角</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">零</span><span lang="EN-US"><font face="Times New Roman">"),"</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">零分</span><span lang="EN-US"><font face="Times New Roman">","</font></span><span style="FONT-FAMILY: 宋体; mso-ascii-font-family: &quot;Times New Roman&quot;; mso-hansi-font-family: &quot;Times New Roman&quot;;">整</span><span lang="EN-US"><font face="Times New Roman">"))</font></span></p>

TA的精华主题

TA的得分主题

发表于 2004-3-22 15:56 | 显示全部楼层

我输入0.233

<DIV class=quote><B>以下是引用<I>nzlwc_fsb在2004-3-19 18:33:00</I>的发言:</B><BR><BR></DIV><BR>
<TABLE style="WIDTH: 621pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=820 border=0 x:str>
<COLGROUP>
<COL style="WIDTH: 79pt; mso-width-source: userset; mso-width-alt: 3360" width=105>
<COL style="WIDTH: 91pt; mso-width-source: userset; mso-width-alt: 3872" width=121>
<COL style="WIDTH: 68pt; mso-width-source: userset; mso-width-alt: 2912" width=91>
<COL style="WIDTH: 48pt; mso-width-source: userset; mso-width-alt: 2048" span=2 width=64>
<COL style="WIDTH: 58pt; mso-width-source: userset; mso-width-alt: 2464" width=77>
<COL style="WIDTH: 48pt; mso-width-source: userset; mso-width-alt: 2048" width=64>
<COL style="WIDTH: 27pt; mso-width-source: userset; mso-width-alt: 1152" width=36>
<COL style="WIDTH: 14pt; mso-width-source: userset; mso-width-alt: 576" span=11 width=18>
<TBODY>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl29 style="BORDER-RIGHT: black 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 467pt; BORDER-BOTTOM: black 0.5pt solid; HEIGHT: 28.5pt; BACKGROUND-COLOR: yellow" width=622 colSpan=8 height=38 rowSpan=2><FONT face=宋体>贰角叁分</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #c0c0c0; BORDER-LEFT: windowtext; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>亿</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #c0c0c0; BORDER-LEFT: windowtext; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>千</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #c0c0c0; BORDER-LEFT: windowtext; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>百</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #c0c0c0; BORDER-LEFT: windowtext; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>十</FONT></TD>
<TD class=xl22 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: #c0c0c0; BORDER-LEFT: windowtext; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>万</FONT></TD>
<TD class=xl23 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>千</FONT></TD>
<TD class=xl23 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>百</FONT></TD>
<TD class=xl23 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>十</FONT></TD>
<TD class=xl23 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>元</FONT></TD>
<TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: #c0c0c0; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>角</FONT></TD>
<TD class=xl25 style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 14pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=18><FONT face=宋体 size=2>分</FONT></TD></TR>
<TR style="HEIGHT: 14.25pt" height=19>
<TD class=xl26 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: yellow" height=19><b><FONT face=宋体 color=#ff0000 size=2> </FONT></b></TD>
<TD class=xl26 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow"><b><FONT face=宋体 color=#ff0000 size=2> </FONT></b></TD>
<TD class=xl26 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow"><b><FONT face=宋体 color=#ff0000 size=2> </FONT></b></TD>
<TD class=xl26 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow"><b><FONT face=宋体 color=#ff0000 size=2> </FONT></b></TD>
<TD class=xl26 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow"><b><FONT face=宋体 color=#ff0000 size=2> </FONT></b></TD>
<TD class=xl26 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow"><b><FONT face=宋体 color=#ff0000 size=2> </FONT></b></TD>
<TD class=xl26 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow"><b><FONT face=宋体 color=#ff0000 size=2> </FONT></b></TD>
<TD class=xl26 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow" align=right x:num><b><FONT face=宋体 color=#ff0000 size=2>2</FONT></b></TD>
<TD class=xl26 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow" align=right x:num><b><FONT face=宋体 color=#ff0000 size=2>3</FONT></b></TD>
<TD class=xl27 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: #c0c0c0; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow"><b><FONT face=宋体 color=#ff0000 size=2>.</FONT></b></TD>
<TD class=xl28 style="BORDER-RIGHT: windowtext 1pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: yellow" align=right x:num><b><FONT face=宋体 color=#ff0000 size=2>3</FONT></b></TD></TR></TBODY></TABLE>

TA的精华主题

TA的得分主题

发表于 2004-3-19 11:58 | 显示全部楼层
<TABLE style="WIDTH: 54pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=72 border=0 x:str>
<COLGROUP>
<COL style="WIDTH: 54pt" width=72>
<TBODY>
<TR style="HEIGHT: 14.25pt" height=19>
<TD style="BORDER-RIGHT: #c0c0c0; BORDER-TOP: #c0c0c0; BORDER-LEFT: #c0c0c0; WIDTH: 54pt; BORDER-BOTTOM: #c0c0c0; HEIGHT: 14.25pt; BACKGROUND-COLOR: transparent" width=72 height=19><FONT face=宋体>‘=IF(ISNUMBER($N$49),IF($N$49&lt;0,"无效数值",IF($N$49&lt;0.005,"零",IF($N$49&lt;0.995,"",TEXT(INT($N$49+0.005),"[dbnum2]")&amp;"元")&amp;IF(LEFT(RIGHT(FIXED($N$49,2),2),1)="0",IF(RIGHT(FIXED($N$49,2),1)="0","",IF($N$49&gt;0.995,"零","")),TEXT(LEFT(RIGHT(FIXED($N$49,2),2),1),"[dbnum2]")&amp;"角")&amp;IF(RIGHT(FIXED($N$49,2),1)="0","整",TEXT(RIGHT(FIXED($N$49,2),1),"[dbnum2]")&amp;"分"))),"非数值!")</FONT></TD></TR></TBODY></TABLE>停好用的
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

手机版|关于我们|联系我们|ExcelHome

GMT+8, 2025-1-11 21:52 , Processed in 0.021332 second(s), 6 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 1999-2023 Wooffice Inc.

沪公网安备 31011702000001号 沪ICP备11019229号-2

本论坛言论纯属发表者个人意见,任何违反国家相关法律的言论,本站将协助国家相关部门追究发言者责任!     本站特聘法律顾问:李志群律师

快速回复 返回顶部 返回列表