我为《权力的游戏》制作了一个支架,以完成我想获得自动评分的工作。因此,如果Mackenzie!B3 =“ x”和Results!B3 =“ x”则其得分+1。但是,如果Mackenzie!E3 =“ x”和Results!E3 =“(blank)”的话,他们的得分为-1,但如果他们俩都以“ x”作为值,则给他们一个分数。我不确定这有多大意义,所以我在这里制作了一张纸页供参考:
https://docs.google.com/spreadsheets/d/1zvkolDZTYEGHsCYgZFRKgsy522j05sf1QPW7p9hkYUs/edit?usp=sharing
我尝试了几种执行IF
语句和MATCH
函数的方法。我真的很感激您能提供的任何帮助,因为将来我可能会再次运行类似的事情。
答案 0 :(得分:1)
粘贴到 C3 单元格中并向下拖动:
=ARRAYFORMULA(SUM(
SUM(IF(INDIRECT(B3&"!B3:B37")<>"", IF(INDIRECT(B3&"!B3:B37")=Results!B$3:B$37, 1, ), )),
SUM(IF(INDIRECT(B3&"!C3:C37")<>"", IF(INDIRECT(B3&"!C3:C37")=Results!C$3:C$37, 1, ), )),
SUM(IF(INDIRECT(B3&"!E3:E37")<>"", IF(INDIRECT(B3&"!E3:E37")=Results!E$3:E$37, 1, -1), )))
+SUMPRODUCT(
IF(INDIRECT(B3&"!B40")<>"", IF(INDIRECT(B3&"!B40")=Results!B$40, 1, ), )+
IF(INDIRECT(B3&"!B41")<>"", IF(INDIRECT(B3&"!B41")=Results!B$41, 2, ), )+
IF(INDIRECT(B3&"!B42")<>"", IF(INDIRECT(B3&"!B42")=Results!B$42, 4, ), )))