0

Googleスプレッドシートの金額を単語に変換するための以下の式を見つけましたが、完全に機能します。しかし、Excel 2010 で使用したいのですが、多くのエラーが発生します。VBAも使えません。助けてくれてありがとう。

=if(or(isBlank(A1),not(isNumber(A1)),A1>=power(10,15)),ifError(1/0,"エラー"),trim(arrayFormula(concatenate(if(trunc( mod(A1,power(10,{15,12,9,6,3}))/power(10,{12,9,6,3,0}))<100,"",choose(int(trunc) (mod(A1,power(10,{15,12,9,6,3}))/power(10,{12,9,6,3,0}))/100)," 1"," 2 "," Three"," Four"," Five"," Six"," Seven"," Eight"," Nine") & " Hundred") & if(mod(trunc(mod(A1,power(10, {15,12,9,6,3}))/パワー(10,{12,9,6,3,0})),100)<>0,if(trunc(mod(A1,パワー(10, {15,12,9,6,3}))/power(10,{12,9,6,3,0}))>100," And",if(A1>power(10,{15,12) ,9,6,3}),choose({1,2,3,4,5},"","","",""," And"),"")),"") & の場合(mod(trunc(mod(A1,power(10,{15,12,9,6,3}))/パワー(10,{12,9,6,3,0})),100)=0,"",if(mod(トランク(mod(A1,パワー(10,{15,12, 9,6,3}))/パワー(10,{12,9,6,3,0})),100)<20,choose(mod(trunc(mod(A1,power(10,{15,12) ,9,6,3}))/power(10,{12,9,6,3,0})),100)," 1"," 2"," 3"," 4"," 5" ," 6"," 7"," 8"," 9"," 10"," 11"," 12"," 13"," 14"," 15"," 16"," 17"," 18"," 19"),choose(int(mod(trunc(mod(A1,power(10,{15,12,9,6,3}))/power(10,{12,9,6,3) ,0})),100)/10),""," 20"," 30"," 40"," 50"," 60"," 70"," 80"," 90") &if(mod(mod(trunc(mod(A1,power(10,{15,12,9,6,3}))/power(10,{12,9,6,3,0})),100) ,10)=0,"","-" & choose(mod(mod(trunc(mod(A1,パワー(10,{15,12,9,6,3}))/パワー(10,{12, 9,6,3,0})),100),10),"1","2","3","4","5","6","7","8","ナイン")))) & if(trunc(mod(A1,power(10,{15,12,9,6,3}))/power(10,{12,9,6,3,0})) =0,"",choose({1,2,3,4,5}," 兆"," 億"," 百万"," 千","")))) & if(A1>=2, " Rand",if(A1>=1," Rand","")) & if((round(A1-trunc(A1),2)*100=0)+(A1<1),""," And") & if(round(A1-trunc(A1),2)*100=0,"",if(round(A1-trunc(A1),2)*100=1," 1セント",if( round(A1-trunc(A1),2)*100<20,choose(round(A1-trunc(A1),2)*100," 1"," 2"," 3"," 4"," 5"," 6"," 7" ," 8"," 9"," 10"," 11"," 12"," 13"," 14"," 15"," 16"," 17"," 18"," 19"), choose(int(round(A1-trunc(A1),2)*100/10),""," 20"," 30"," 40"," 50"," 60"," 70"," 80 "," 90") & if(mod(round(A1-trunc(A1),2)*100,10)=0,"","-" & choose(mod(round(A1-trunc(A1), 2)*100,10),"1","2","3","4","5","6","セブン"、"エイト"、"ナイン"))) & "セント"))))

4

1 に答える 1

0

数値が ~100 を超える必要がない場合は、2 つの列を作成する方が簡単な場合があります。1 つ目は 1、2、3 などで、2 つ目は 1、2、3 などです。その後、VLOOKUP() を実行できます。そのテーブルの上。

例はここにあります: https://www.dropbox.com/s/e44dnkg3he8b8il/NumericalToAlpha.xlsx

于 2013-01-26T00:02:55.033 に答える