Not sure what is confusing, so I copied the formulas into rows 6:7 on the School2 sheet in the attached file.
To change the month and year select a month in cell D11 on the Top sheet and type in a year in cell D12.
Please let us know what is confusing or what is causing problems.
Bookmarks