Counting matching pairs of checkboxes
I have a table with mainly three columns, the first one showing a selection of products through checkboxes (col B), the second one showing checkboxes for a given criterion 1 (col C), the third one showing those for a given criterion 2 (col D).
My actual table currently has about 50 rows (products) and 40 columns (criteria). In an abridged version it looks like this:
I want to count the matching pairs of checked checkboxes for a score. The formula I have developed for this sample is not suitable because of the size of my table (50 rows, 40 cols), which is growing daily. This is the formula for criterion 1 (C2) (a bit of a hodgepodge):
Is there a better way to express the sum of all matching checked checkboxes in one formula?
I know I could add a "verification" column next to each to calculate each match, hide it and then sum that up, but I want to avoid that as I would have to do that for each new column (this grows daily):