Dear Neilesh Kumar
The solution I propose have a two helper columns in Master Sheet
Column AL from AL2
Formula:
=COUNTIFS($A$2:$A$22,IF(Working!$A$2="ALL","<>",Working!$A$2),$C$2:$C$22,C2,$B$2:$B$22,DATE(YEAR(B2),MONTH(B2)-1,1))
Column AM from AM2
Formula:
=COUNTIFS($A$2:$A$22,IF(Working!$A$2="ALL","<>",Working!$A$2),$C$2:$C$22,C2,$B$2:$B$22,DATE(YEAR(B2),MONTH(B2)+1,1))
Use in E2, F2, J2 and K2 the folowing formulas (and copy down)
Formula:
=COUNTIFS(Master!$AL$2:$AL$22,0,Master!$B$2:$B$22,Report!$A3)
Formula:
=SUMIFS(Master!$L$2:$L$22,Master!$AL$2:$AL$22,0,Master!$B$2:$B$22,Report!$A3)
+SUMIFS(Master!$M$2:$M$22,Master!$AL$2:$AL$22,0,Master!$B$2:$B$22,Report!$A3)
Formula:
=COUNTIFS(Master!$AM$2:$AM$22,0,Master!$B$2:$B$22,Report!$A2)
Formula:
=SUMIFS(Master!$L$2:$L$22,Master!$AM$2:$AM$22,0,Master!$B$2:$B$22,Report!$A2)
+SUMIFS(Master!$M$2:$M$22,Master!$AM$2:$AM$22,0,Master!$B$2:$B$22,Report!$A2)
See the file
Bookmarks