Consider the following table which shows a generalised, abstract version of my specific real-world problem (which I will also illustrate).
Each "1" or "0" is part of a column numbered I..III, which in turn belongs to one of the, let's call them "super-columns" ("x..z"). This means that, for each case, each super-column will contain a "1" (or a "0") n times. For example, in case1, the super-column "x" contains a "1" once.
Now I need to calculate a specific value: the number of times a "1" (or a "0") appears in any super-column a specific number of times. I need to be able, for example, to answer the question how often does a "1" appear as part of a super-column more than twice? ...for case1, the answer would be "2", as super-columns "y" and "z" contain a "1" two, or three times, respectively.
My intuition is that a combination of COUNTIFS and SUMPRODUCT might work, but my own attempts have been so unsuccessful they're not even worth describing them here.
For the sake of completeness, this is the background, or the practical application that I have in mind:
A digital attendance list for classes that I teach. Note the "super-columns" again that represent days of the week, and the "sub-columns" (1..8) for the up-to-eight classes that students are supposed to attend per day. "." = present, "x" = absent. My problem is to not only count the number of lessons a student has missed, but also the number of entire school days that they were absent (a day being counted as a day of absence if four or more lessons were missed). So for the two cases in this table, both students have (nominally) missed an entire school day.