是否可以将countif更改为数组Google表格

时间:2018-11-06 18:03:10

标签: arrays google-sheets

下面是两个用于确定所选课程是否已满或空缺的公式。我想知道是否可以将这些公式更改为数组,或者是否有解决方法可以实现相同的结果。

=if(COUNTIF(G$2:G2,G2)<=(VLOOKUP(G2,$AC$2:$AD$50,2,0)),G2,"Full")

=if(W2="Full",if(COUNTIF({R$2:R;S$2:S;T$2:T;U$2:U;V$2:V;W$2:W},M2) 

编辑:链接至演示工作表https://docs.google.com/spreadsheets/d/1nPhrEKhKwuq3YSghgJ4LFoHZqOzo67_b1qohh1NABJo/edit?usp=sharing

1 个答案:

答案 0 :(得分:0)

我复制了工作表并输入了R2

=Arrayformula(IF(LEN(G2:G), if(COUNTIF(G$2:G,G2:G)<=(VLOOKUP(G2:G,$AC$2:$AD$50,2,0)),G2:G,"Full"),))

和S2

=ArrayFormula(if(len(R2:R), if(R2:R="Full",if(COUNTIF(R$2:R,H2:H)<VLOOKUP(H2:H,$AC$2:$AD$50,2,0),H2:H,"Full"),),))

看看这是否适合您?