In each row I have 6 values, either an A or an R. I have 19 rows. In each row I want to count "A" and square it, and add that to the count of R squared. I can do it row by row (see column H attached) but want to be able to come up with the final sum (418) directly. Every countif and Sumproduct I've tried doesn't come close.
Bookmarks