Looks a little overcomplicated to me - just use SUMIF

=SUMIF(IMPORT!$A$2:$A$200,$B2,IMPORT!$H$2:$H$200)