Try this formula in K1:

=SUMIFS(H:H,B:B,1,F:F,ROWS($1:1))

then copy down to K5.

Hope this helps.

Pete