Original
=SUMIF($D$5:$D$871,D890,L5:L871)
Pasted down where the values were way off
=SUMIF($D$5:$D$871,D891,L6:L872)
=SUMIF($D$5:$D$871,D892,L7:L873)
Working fine version (s)
=SUMIF($D$5:$D$871,D890,$L$5:$L$871)
=SUMIF($D$5:$D$871,D891,$L$5:$L$871)
=SUMIF($D$5:$D$871,D892,$L$5:$L$871)