SUMIF与清单标准pt.2

时间:2018-06-15 06:18:40

标签: excel excel-formula

我早些时候问过这件事。这是link,我使用了经过检查的答案。

当我尝试使用不同的数组添加另一个listdown时。如果我全部选择,我会收到错误。

这是我的完整公式:

{=SUM(--(FREQUENCY(IF((card!$D$2:$D$3938=$D3)*(card!$J$2:$J$3938=(IF($B$4="All",{"H","A"},$B$4)))*(card!$K$2:$K$3938=(IF($B$1="All",{"2016","2017","2018"},$B$1)))*(card!$F$2:$F$3938=(IF($B$3="All",{"YC","Y2C","RC"},$B$3))),MATCH(card!$A$2:$A$3938,card!$A$2:$A$3938,0)),ROW(card!$A$2:$A$3938)-ROW(card!$A$2)+1)>0))}

{=SUM(--(FREQUENCY( //count unique match.// IF((card!$D$2:$D$3938=$D3)* //if team_col = Team_name.// (card!$J$2:$J$3938=(IF($B$4="All",{"H","A"},$B$4)))* //side_col = (All,H,A)// (card!$K$2:$K$3938=(IF($B$1="All",{"2016","2017","2018"},$B$1)))* //season_col=(all,16,17,18)// (card!$F$2:$F$3938=(IF($B$3="All",{"YC","Y2C","RC"},$B$3))) //card_col=(All,YC,Y2C,RC)// ,MATCH(card!$A$2:$A$3938,card!$A$2:$A$3938,0)),ROW(card!$A$2:$A$3938)-ROW(card!$A$2)+1)>0))} //rest of count unique match.//

每当我选择All to the three listdown时。我收到一个错误。我的直觉是它没有相同的数组?如果我使用通配符,无论我选择什么,都会得到错误。我这样做了吗?

1 个答案:

答案 0 :(得分:1)

通过将B1B3B4设置为“全部”,您似乎正在尝试计算数据集中属于该团队的唯一玩家数量输入D3。检查多个条件与此处COUNTIFSSUMIFS的工作方式不同。试试这个:

=SUM(--(FREQUENCY(IF((card!$D$2:$D$34=$D3)*IF($B$4="All",1,card!$J$2:$J$34=$B$4)*IF($B$1="All",1,card!$K$2:$K$34=$B$1)*IF($B$3="All",1,card!$F$2:$F$34=$B$3),MATCH(card!$A$2:$A$34,card!$A$2:$A$34,0)),ROW(card!$A$2:$A$34)-ROW(card!$A$2)+1)>0))