This proposal requires some changes to Sheet 6 and that the name of the other tab be changed to match the text in cell A3.
1) Column B is populated using O, C and P,
2) The months in row 2 are changed to dates (1/1/18, 2/1/18 ...) and formatted mmmm
Cells D3:O5 are then populated using:
Formula:
=SUMIFS(INDIRECT($A$3&"!$P$534:$P$579"),INDIRECT($A$3&"!$K$534:$K$579"),$B3,INDIRECT($A$3&"!$h$534:$h$579"),">="&D$2,INDIRECT($A$3&"!$h$534:$h$579"),"<="&EOMONTH(D$2,0))
Let us know if you have any questions.
Bookmarks