如果資料在A2:B6
堆一個``03用不了吧
=IF(ROW(A1)>COUNT(0/(COUNTIF(OFFSET(A$2:B$2,,,ROW($1:$5)),$A$2:$B$6)=1)),"",INDIRECT(TEXT(MOD(SMALL((COUNTIF(OFFSET(A$2:B$2,,,ROW($1:$5)),$A$2:$B$6)*10+LOOKUP(ROW($1:$5)*2-{1,0},ROW($1:$10),MMULT(N(T(INDIRECT(TEXT(SMALL(ROW($2:$6)/1%+{1,2},ROW($1:$10)),"r0c00"),))>T(INDIRECT(TEXT(SMALL(ROW($2:$6)/1%+{1,2},COLUMN(A:J)),"r0c00"),))),ROW(1:10)^0)))/1%%+ROW($2:$6)/1%+{1,2},ROW(A1)),10^4),"r0c00"),))
複製程式碼
而且只適合1位數或1位字母吧``
公式是將其從小到大排序去除重複項(但在父子級有取巧成分,對於這種父子級沒問題)
如果資料在A2:B6
堆一個``03用不了吧
=IF(ROW(A1)>COUNT(0/(COUNTIF(OFFSET(A$2:B$2,,,ROW($1:$5)),$A$2:$B$6)=1)),"",INDIRECT(TEXT(MOD(SMALL((COUNTIF(OFFSET(A$2:B$2,,,ROW($1:$5)),$A$2:$B$6)*10+LOOKUP(ROW($1:$5)*2-{1,0},ROW($1:$10),MMULT(N(T(INDIRECT(TEXT(SMALL(ROW($2:$6)/1%+{1,2},ROW($1:$10)),"r0c00"),))>T(INDIRECT(TEXT(SMALL(ROW($2:$6)/1%+{1,2},COLUMN(A:J)),"r0c00"),))),ROW(1:10)^0)))/1%%+ROW($2:$6)/1%+{1,2},ROW(A1)),10^4),"r0c00"),))
複製程式碼
而且只適合1位數或1位字母吧``
公式是將其從小到大排序去除重複項(但在父子級有取巧成分,對於這種父子級沒問題)