ok I got it down to this code but still can't figure all of it out? Can somebody please help!!

=IF(I6="Blank",SUM(L3:L43),SUMIF(J3:J43,I6,L3:L43))