If you are not running Excel 365 then you can use the following formula in cell I26 and drag it down.
=SUM(IFERROR(INDEX($C$2:$C$5, MATCH(E26, $B$2:$B$5, 0)), 0), IFERROR(INDEX($F$2:$F$5, MATCH(E26, $E$2:$E$5, 0)), 0), IFERROR(INDEX($I$2:$I$9, MATCH(E26, $H$2:$H$9, 0)), 0), IFERROR(INDEX($L$2:$L$6, MATCH(E26, $K$2:$K$6, 0)), 0), IFERROR(INDEX($O$2:$O$9, MATCH(E26, $N$2:$N$9, 0)), 0), IFERROR(INDEX($C$14:$C$21, MATCH(E26, $B$14:$B$21, 0)), 0), IFERROR(INDEX($F$14:$F$21, MATCH(E26, $E$14:$E$21, 0)), 0)) - INDEX($F$26:$F$33, MATCH(E26, $E$26:$E$33, 0))
I hope to receive a reply from you to let me know whether your problem has been resolved or not.