I think @aronos is trying to help you determine whether you need both accounts linked to the sheet in order to see the data. Do they flow from the main account holder account and still give you the detail you want? Is there a way to prevent the duplicate from flowing in?
Otherwise, you might experiment with =COUNTIFS for some DIY analysis