Further to jim360's answer, if you have a column in your spreadsheet that has, for example, "YES" when the class was on, you can use a COUNTIF formula instead: COUNTIF(A1:A20,"YES") - that will count all the cells with YES in, and saves having to create an extra "working out" column, and is easier to follow (I think).
16:09 Fri 11th Apr 2014