Well, you can replace the formula in X16 with the following:
=COUNT(IF((MOD(COLUMN(B4:T12)-COLUMN(B4),3)=0)*ISNUMBER(SEARCH($F$15,B4:T12)),1))*30+COUNT(IF((MOD(COLUMN(B4:T12)-COLUMN(B4),3)=0)*ISNUMBER(SEARCH($F$15,B4:T12)),1))*0+COUNT(IF((MOD(COLUMN(B4:T12)-COLUMN(B4),3)=0)*ISNUMBER(SEARCH($F$15,B4:T12)),1))*15+COUNT(IF((MOD(COLUMN(B4:T12)-COLUMN(B4),3)=0)*ISNUMBER(SEARCH($F$15,B4:T12)),1))*30
and then you don't need the individual totals in F16, I16, L16, and O16
You can do similar in the the X cell sums... the formulas may be long though...
Basically the formula is a concatenation of several of these subformulas: COUNT(IF((MOD(COLUMN(B4:T12)-COLUMN(B4),3)=0)*ISNUMBER(SEARCH($F$15,B4:T12)),1))*30
which Counts if there is a match to what is in F15, in every 3 columns after column B. and multiplies the result by your multiple (e.g. 30 in this case).
Note: After you enter these formulas, they must be confirmed with CTRL+SHIFT+ENTER not just ENTER..where you will see { } brackets appear around it.
I attached your sheet showing the first formula in X16 with result you had.... you can delete the other stuff in Row 16 and the result should still remain.
Bookmarks