我发现下面这个公式可以将金额转化为谷歌电子表格的单词,而且效果很好。但现在我想在excel 2010中使用它,我会遇到很多错误。我也不能使用VBA。谢谢你的帮助。
=如果(或(的isBlank(A1),不(ISNUMBER(A1))中,A 1&GT =功率(10,15)),IFERROR(1/0, “错误”),修剪(ARRAYFORMULA(串连(如果(TRUNC(MOD(A1,电源(10,{15,12,9,6,3}))/电源(10,{12,9,6,3,0}))≤100 “”,选择(int(trunc(mod(A1,power(10,{15,12,9,6,3}))/ power(10,{12,9,6,3,0}))/ 100),“One “,”两个“,”三个“,”四个“,”五个“,”六个“,”七个“,”八个“,”九个“)和”百“)&amp; if(mod(trunc(mod(mod) A1,电源(10,{15,12,9,6,3}))/电源(10,{12,9,6,3,0})),100)&LT;大于0,如果(TRUNC( mod(A1,power(10,{15,12,9,6,3}))/ power(10,{12,9,6,3,0}))&gt; 100,“And”,if(A1&gt; ;权力(10,{15,12,9,6,3}),选择({1,2,3,4,5},“”,“”,“”,“”,“和”),“ “)),”“)&amp; if(mod(trunc(mod(A1,power(10,{15,12,9,6,3}))/ power(10,{12,9,6,3, 0})),100)= 0 “”,如果(MOD(TRUNC(MOD(A1,电源(10,{15,12,9,6,3}))/电源(10,{12,9, 6,3,0})),100)&小于20,选择器(MOD(TRUNC(MOD(A1,电源(10,{15,12,9,6,3}))/电源(10,12 {, 9,6,3,0})),100),“一”,“二”,“三”,“四”,“五”,“六”,“七”,“八”,“九”, “十”,“十一”,“十二”,“十三”,“十四”,“十五”,“十六”,“七”青少年“,”十八“,”十九“),选择(int(mod(mod(mod(A1,power(10,{15,12,9,6,3}))/ power(10,{12,9 ,6,3,0})),100)/ 10),“”,“二十”,“三十”,“四十”,“五十”,“六十”,“七十”,“八十”,“九十” )&amp;如果(MOD(MOD(TRUNC(MOD(A1,电源(10,{15,12,9,6,3}))/电源(10,{12,9,6,3,0})),100) ,10)= 0,“”,“ - ”&amp; choose(mod(mod(trunc(mod(A1,power(10,{15,12,9,6,3}))/ power(10,{12 ,9,6,3,0})),100),10), “一”, “二”, “三”, “四有”, “五”, “六”, “七”, “八”, “九”))))&amp;如果(TRUNC(MOD(A1,电源(10,{15,12,9,6,3}))/电源(10,{12,9,6,3,0}))= 0 “”,选择({1,2,3,4,5},“Trillion”,“Billion”,“Million”,“Thousand”,“”)))&amp; if(A1> = 2,“Rand”,if(A1> = 1,“Rand”,“”))&amp; if((round(A1-trunc(A1),2)* 100 = 0)+(A1 <1),“”,“And”)&amp; if(round(A1-trunc(A1),2)* 100 = 0,“”,if(round(A1-trunc(A1),2)* 100 = 1,“One Cent”,if(round(A1-) trunc(A1),2)* 100&lt; 20,选择(round(A1-trunc(A1),2)* 100,“One”,“Two”,“Three”,“Four”,“Five”,“Six “,”七“,”八“,”九“,”十“,”十一“,”十二“,”十三“,”十四“,”十五“,”十六“,”十七“,”十八“, “十九”),选择(int(圆(A1-trunc(A1),2)* 100/10),“”,“Twenty”,“Thirty”,“Forty”,“Fifty”,“Sixty”,“七十“,”八十“,”九十“)&amp; if(mod(圆(A1-trunc(A1),2)* 100,10)= 0,”“,” - “&amp; choose(mod(round) A1-TRUNC(A1),2)* 100,10), “一”, “二”, “三”, “四有”, “五”, “六”, “七”, “八”, “九” )))&amp;“Cent”))))
答案 0 :(得分:0)
如果您的数字不需要超过100,那么可能更容易制作两列,第一列是1,2,3等,第二列是一列,二,三等。然后你可以做该表上的VLOOKUP()。
可在此处找到一个示例:https://www.dropbox.com/s/e44dnkg3he8b8il/NumericalToAlpha.xlsx