|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
通过大家的参与,拓展了思路,一个好的主题,没有大家参与交流思路是写不出精妙的公式,自然也称不上好贴。现将较优的公式挑选至一楼,方便大家查阅.
一、适用于十万元内大写逆转换为数字的公式
适用于十万元内大写逆转换为数字的公式,只将经典公式结题如下:
x.f.zhao(14楼,通用公式,共121字)
=SUM(TEXT(FIND(MID(0&A3,FIND(MID("万仟佰拾元角分",ROW($1:8),1),A3&"万仟佰拾元角分"),1),"0整分万仟佰拾零壹贰叁肆伍陆柒捌玖")-8,"0;!0")*10^(5-ROW($1:8)))
wshcw(24楼,EXCEL2007版公式共98字)
=SUM(IFERROR(FIND(MID(A3,FIND(MID("分角元拾佰仟万",ROW($1:8),1),A3)-1,1),"壹贰叁肆伍陆柒捌玖"),)*10^(ROW($1:8)-3))
二、liuzj2s网友的公式最通用(37楼,适用于1000亿以内,03版的).
=IF(COUNT(FIND("亿",A2)),SUM(TEXT(FIND(MID(A2,FIND({"亿","拾","佰","仟"},A2&"整拾佰仟")-1,1),"拾佰仟整壹贰叁肆伍陆柒捌玖")-4,"0;!0")*10^{8,9,10,11}*(FIND({"亿","拾","佰","仟"},A2&"拾佰仟")<=FIND("亿",A2))))+IF(COUNT(FIND("万",A2)),SUM(TEXT(FIND(MID(A2,FIND({"万","拾","佰","仟"},A2&"整拾佰仟",IF(FIND("亿",A2&"亿")<LEN(A2),FIND("亿",A2),1))-1,1),"拾佰仟整壹贰叁肆伍陆柒捌玖")-4,"0;!0")*10^{4,5,6,7}*(FIND({"万","拾","佰","仟"},A2&"拾佰仟",IF(FIND("亿",A2&"亿")<LEN(A2),FIND("亿",A2),1))<=FIND("万",A2))))+SUM(TEXT(FIND(MID(MID(A2,MAX((FIND({"万","亿"},A2&{"万","亿"})<LEN(A2))*FIND({"万","亿"},A2&{"万","亿"}),1),99)&"分角元拾佰仟",FIND({"分","角","元","拾","佰","仟"},MID(A2,MAX((FIND({"万","亿"},A2&{"万","亿"})<LEN(A2))*FIND({"万","亿"},A2&{"万","亿"}),1),99)&"分角元拾佰仟")-1,1),"拾佰仟万亿元角分整壹贰叁肆伍陆柒捌玖")-9,"0;!0")*10^{-2,-1,0,1,2,3})
[ 本帖最后由 wshcw 于 2009-8-13 17:31 编辑 ] |
评分
-
1
查看全部评分
-
|