https://www.zhihu.com/question/424783486/answer/1514604655
需求就是把左边人答完的答案对应到右边的表头,然后再去分类计数
J2的公式是:
=IF(COLUMN($D$1)-3=MATCH(B2,D2:G2,0),$D$1,
IF(COLUMN($E$1)-3=MATCH(B2,D2:G2,0),$E$1,
IF(COLUMN($F$1)-3=MATCH(B2,D2:G2,0),$F$1,
IF(COLUMN($G$1)-3=MATCH(B2,D2:G2,0),$G$1,"--"))))
A9的公式是:
=COUNTIFS($J$2:$J$7,A9)