hi Linda. not sure if this is right. i based it on the Item Code. try it in H2 & copy down
=G2+SUMIF(E$2:E2,E2,F$2:F2)