Remove the  character (Chr26) at the bottom of Column B or change this line as shown
If InStr(1, Trim(arr(i, 2)), "TOTAL") = 0 And Not (arr(i, 2) = Empty) And Not (arr(i, 2) = Chr(26)) Then