It doesn't work for the same reason that your original formula doesn't work, you are comparing numeric items with strings. You need to string it

=SUMPRODUCT(--(MID(A1:A10,2,1)=TEXT(B6,"General")))