Using this QUERY which will give a complete table, and has been added to your file, you will notice that your data is not clean, meaning that there are hidden spaces so names appear to be duplicated.

=QUERY(REFUND!F:I, "select F, count(H), sum(I) where H='REFUNDED' group by F label count(H) '# Refunds', sum(I) 'Amount'",1)