You don't need complex formulas to summarize thousands of rows when PivotTables can do the heavy lifting for you.
Many of these errors start long before you click "Insert." ...