=IF(次数=0,0,IF(次数=1,MAX(data1),MAX(IF(ISERROR(data1+newdata1),"",data1+newdata1)))
data=OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)
data1=FREQUENCY(IF(data=问题!K$1,"",ROW(data)),IF(data=问题!K$1,ROW(data),""))
newdata=OFFSET(OFFSET(问题!C$2,INDEX(data1,1)+1,0),0,0,COUNTA(问题!C:C)-2-INDEX(data1,1),1)
newdata1=FREQUENCY(IF(newdata=问题!K$1,"",ROW(newdata)),IF(newdata=问题!K$1,ROW(newdata),""))
次数=COUNTIF(data,问题!K$1)-1
用代数代换法代入,这个函数公式有这么长:
=IF(COUNTIF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1),问题!K$1)-1=0,0,IF(COUNTIF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1),问题!K$1)-1=1,MAX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“))),MAX(IF(ISERROR(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“))+FREQUENCY(IF(OFFSET(OFFSET(问题!C$2,INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1)+1,0),0,0,COUNTA(问题!C:C)-2-INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1),1)=问题!K$1,”“,ROW(OFFSET(OFFSET(问题!C$2,INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1)+1,0),0,0,COUNTA(问题!C:C)-2-INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1),1))),IF(OFFSET(OFFSET(问题!C$2,INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1)+1,0),0,0,COUNTA(问题!C:C)-2-INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1),1)=问题!K$1,ROW(OFFSET(OFFSET(问题!C$2,INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1)+1,0),0,0,COUNTA(问题!C:C)-2-INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1),1)),”“))),"",FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“))+FREQUENCY(IF(OFFSET(OFFSET(问题!C$2,INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1)+1,0),0,0,COUNTA(问题!C:C)-2-INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1),1)=问题!K$1,”“,ROW(OFFSET(OFFSET(问题!C$2,INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1)+1,0),0,0,COUNTA(问题!C:C)-2-INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1),1))),IF(OFFSET(OFFSET(问题!C$2,INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1)+1,0),0,0,COUNTA(问题!C:C)-2-INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1),1)=问题!K$1,ROW(OFFSET(OFFSET(问题!C$2,INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1)+1,0),0,0,COUNTA(问题!C:C)-2-INDEX(FREQUENCY(IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,”“,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1))),IF(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)=问题!K$1,ROW(OFFSET(问题!C$2,0,0,COUNTA(问题!C:C)-1,1)),”“)),1),1)),”“)))))
|