MMULT necessary since OP's Month column is YYYY MMM text. If only it were date values (numbers) just formatted like that, then it'd be possible to use a shorter formula
=MAX(SUMIFS(Table1[Data1],Table1[Agent],Table1[Agent],Table1[Agent],"<>TOTAL",Table1[Month],"<="&--(J1&H1)))
Bookmarks