✔ 最佳答案
B欄右移至C欄,
B1公式:重排A欄數字
=LEFT(TEXT(MMULT(SMALL(--MID(A1&REPT(9,9),{1,4,7},2),{1,2,3}),10^{4;2;0}),REPT("00 ",3)),LEN(A1))
D1公式如上
E欄使用MATCH或COUNTIF,核對B欄~~
2015-07-13 18:11:47 補充:
參考檔:
http://www.funp.net/517181
原題中數字之間有空白格,
公式更改:
=LEFT(TEXT(MMULT(SMALL(--MID(A1&REPT(9,9),{1,3,5},2),{1,2,3}),10^{4;2;0}),REPT(0,6)),LEN(A1))
2015-07-13 18:20:48 補充:
數字之間沒有空白格,也可簡化:
=MID(10^6+MMULT(SMALL(--MID(A1&REPT(9,9),{1,3,5},2),{1,2,3}),10^{4;2;0}),2,LEN(A1))
2015-07-13 18:24:03 補充:
或:
=MID(10^6+SUM(SMALL(--MID(A1&REPT(9,9),{1,3,5},2),{1,2,3})*10^{4,2,0}),2,LEN(A1))
2015-07-13 18:26:03 補充:
最多五個號碼比對:
=MID(10^10+SUM(SMALL(--MID(A1&REPT(9,10),{1,3,5,7,9},2),{1,2,3,4,5})*10^{8,6,4,2,0}),2,LEN(A1))
2015-07-13 20:52:37 補充:
若資料不多,每格數字不重覆
D1公式:
=IF(C1="","",IF(SUMPRODUCT((MMULT(1-ISERR(FIND(MID(C1,{1,3,5,7,9},2),TEXT(A$1:A$16,REPT(" 00",5)))),{1;1;1;1;1})=5)*(LEN(A$1:A$16)=LEN(C1))),"V",""))
2015-07-15 13:19:12 補充:
EXCEL.數字組合文字串的比對
<.准提部林.>
--------------------------------
■示例: ABCDE300102010230010806010608 013802010238010205010205V01020501020501080108 010338010338110806060811 0831083111080811 020105010205V 210806060821 050201010205V 21080821 310806060831 380301010338V 31080831V 010809010809
■公式一:
B1:排序數字後再重組
=MID(10^10+SUM(SMALL(--MID(A1&REPT(9,10),{1,3,5,7,9},2),{1,2,3,4,5})*10^{8,6,4,2,0}),2,LEN(A1))
D1:排序數字後再重組
=MID(10^10+SUM(SMALL(--MID(C1&REPT(9,10),{1,3,5,7,9},2),{1,2,3,4,5})*10^{8,6,4,2,0}),2,LEN(C1))
E1:比對
=IF(ISNA(MATCH(D1,B:B,)),"","V")
或.D1&E1可併為一式:
=IF(ISNA(MATCH(MID(10^10+SUM(SMALL(--MID(C1&REPT(9,10),{1,3,5,7,9},2),{1,2,3,4,5})*10^{8,6,4,2,0}),2,LEN(C1)),B:B,)),"","V")
■公式二:
若A欄資料不多,可使用下式:
=IF(C1="","",IF(SUMPRODUCT((MMULT(1-ISERR(FIND(MID(C1,{1,3,5,7,9},2),TEXT(A$1:A$16,REPT(" 00",5)))),{1;1;1;1;1})=5)*(LEN(A$1:A$16)=LEN(C1))),"V",""))
--------------------------------