Range("G12").Formula = "=COUNTIFS('TECH DETAIL (ALL)'!D:D,'test'!E6,'TECH DETAIL (ALL)'!C:C,'test'!C12,'TECH DETAIL (ALL)'!BR:BR,"">0"")"
我已经尝试了不同的方法来使用围绕> 0的不同语法来完成这项工作,但似乎没有任何工作......这只会计算经理在其下的员工数量。
答案 0 :(得分:0)
标准的语法最终需要"<"&0
所以公式应该是;
Range("G12").Formula = "=COUNTIFS('TECH DETAIL (ALL)'!D:D,'test'!E6,'TECH DETAIL (ALL)'!C:C,'test'!C12,'TECH DETAIL (ALL)'!BR:BR,"">""&0)"