I am trying to make a basic countif function which is =COUNTIF(C2:BE2,"Yes")
into an ArrayFunction which is
=ArrayFormula(if(isblank(A2:A),"",countif(C:BE,"Yes")
But this function counts every single "Yes" in the range C:BE
.
How do I make it so it counts row by row and still is an array formula?
Meaning the cell with this function counts from C2:BE2 and the next one counts from C3:BE3
Also I can't use the sign function as it only works if the criteria has numbers in it which the other posts in this forum have.
作为MMULT的替代方法(请参阅Max的链接),请尝试输入第2行
=ArrayFormula(if(len(A2:A), countif(if(C2:BE="Yes", row(C2:C)), row(C2:C)),))
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.