The RangeCheck() function I gave you can do this, just use more cells. Put this in the original cell AE42:

=RangeCheck($B$23:$H$42, $J42:$P42, $W$42:$AC$42)

then copy/paste UP through cell AE33. Add those up.