不知理解得对不对?
C1=COUNTIF(OFFSET(名次!A$2:A$13,,MATCH(A$1,名次!$1:$1,)-1),E1),下拉。
G1
- =TEXTJOIN("、",,IF(MAX((COLUMN(A:S)<>MATCH(A$1,名次!$1:$1,)-1)*MMULT(TRANSPOSE(ROW(INDIRECT("1:"&C1))^0),COUNTIF(OFFSET(名次!A$1,SMALL(IF(OFFSET(名次!A$2:A$13,,MATCH(A$1,名次!$1:$1,)-1)=E1,ROW($1:$12)),ROW(INDIRECT("1:"&C1))),COLUMN(A:S)),E1)))=MMULT(TRANSPOSE(ROW(INDIRECT("1:"&C1))^0),COUNTIF(OFFSET(名次!A$1,SMALL(IF(OFFSET(名次!A$2:A$13,,MATCH(A$1,名次!$1:$1,)-1)=E1,ROW($1:$12)),ROW(INDIRECT("1:"&C1))),COLUMN(A:S)),E1)),名次!B$1:T$1,""))
复制代码 ,三键,下拉。
|