I have a spreadsheet with account numbers and balances and am doing a sumif on them. However some clients have subaccounts and thus doing a sumif on the account number (which I want) gives several of the same values. Is there a way in VBA to fill a column with sumif formulae but only return unique results?