我为权力的游戏制作了一个支架,用于我想要自动得分的工作。所以,如果Mackenzie!B3 =“x”并且结果!B3 =“x”那么它将得分+1。但是如果Mackenzie!E3 =“x”并且结果!E3 =“(空白)”那么它将得分-1但是如果它们都有“x”作为值,则给它们一个点。我不知道有多大意义,所以我在这里制作了一份表格供参考:
https://docs.google.com/spreadsheets/d/1zvkolDZTYEGHsCYgZFRKgsy522j05sf1QPW7p9hkYUs/edit?usp=sharing
我尝试了几种方法来做IF
语句和MATCH
函数。我真的很感激你能给我的任何帮助,因为我将来可能会再次运行这样的事情。
粘贴在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, ), )))