I was researching a way to count the number of zeroes in a column of data, even if the data gets filtered. I found the following solution:
=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B18,ROW(B2:B18)-MIN(ROW(B2:B18)),,1)),ISNUMBER(SEARCH("Pear",B2:B18))+0)
Where, B2:B18
is the total list of data and "Pear"
is the criteria being counted.
- Can someone explain how this formula is accomplishing this task?
- Is there a simpler way of doing this?