Assuming that: month, APAC is same order between both year (the two table is same size, particular month in same column, countries are in same order)
All the month must be real date, formatted as MMM, i.e MAR is 03/01/2019 (First day of the month)
Sheet data: C3=Date(S3,1,1)
D3=EOMONTH(MAX($B3:C3),0)+1
Copy to Dec
Copy row 3 to row 13
Sheet Result: In B3, type 1st day of the month, i.e 04/01/2019 (year is fixed to 2019)
C5:
=SUMPRODUCT((Data!$B$4:$B$9=$B$4)*(Data!$C$3:$S$3=$B$3)*IF(C$3=2019,Data!$C$4:$S$9,Data!$C$14:$S$19))
Drag to D5
F5:
=SUMPRODUCT((Data!$B$4:$B$9=$B$4)*(Data!$C$3:$R$3<=$B$3)*(Data!$C$3:$R$3>=DATE(2019,CHOOSE(MONTH($B$3),1,1,1,4,4,4,7,7,7,10,10,10),1))*IF(F$3=2019,Data!$C$4:$R$9,Data!$C$14:$R$19))
Drag to G5
I5:
=SUMPRODUCT((Data!$B$4:$B$9=$B$4)*(Data!$C$3:$R$3<=$B$3)*IF(I$3=2019,Data!$C$4:$R$9,Data!$C$14:$R$19))
Drag to J5
Bookmarks