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","セブン"、"エイト"、"ナイン"))) & "セント"))))