So what still appears to be the issue?
View attachment 100187
My original formula, adjusted for you switch of column A & B, for the data sample above:
Excel Formula:
=SUMPRODUCT(--(A2:A7=INT(A2:A7)),B2:B7)
If something still does not work right, please post a sample of your data, formula, and the output you are getting (and the output you are expecting).