|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
请高手帮我写一个将阿拉伯数字转换为美元大写金额(英文)的公式,(不要模块)万分感谢! 要求如下(或看附件):数字无小数位时:
1.将123转换为one hundred and twenty-three US Dollars only 。 当数字没有小数位时,后面加个only.
或
2.将2211转换为two thousand two hundred eleven US Dollars and no cents 。即:当数字没有小数位时,后面加and no cents , 不带only也可以。
当数字有小数位时:
1.将8245.61转换为eight thousand two hundred and forty-five US Dollars and sixty-one cents 。十位和个位之间有个横杠。
或
2.将2663.55转换为 two thousand six hundred sixty three US Dollars and fifty five cents 。即:十位和个位之间没有横杠也行
数字转美元金额注意:无论有无小数位的数字,请设计一个公式来转换。不要提供两种不同的公式,谢谢!
|
|