Excel's query tool reshapes messy imports into 1NF, so AVERAGEIFS replaces hacks and your summaries run faster.
The FILTER function extracts every matching record while XLOOKUP only returns the first result.
Stop your formulas from breaking by switching from grid-based coordinates (ROW) to stable table measurements (ROWS).