The FILTER function extracts every matching record while XLOOKUP only returns the first result.
Excel's query tool reshapes messy imports into 1NF, so AVERAGEIFS replaces hacks and your summaries run faster.