So I have I guess what you would call a "crosstab" file as an income statement. It has Month end dates as column headers and different criteria (account grouping names, which can be repeated, hence why xlookup won't work here) as the row names. So one thing I am being tasked with doing is summing by quarter. If "Labor Category X" wasn't repeated on multiple rows (salary, tax, vacation, for Labor Cat X rolls up into this category for ex) sum(xlookup) across the last 3 months would work. But since there are multiple rows where there is a match, xlookup fails. I know I need some combo of sumproduct and index but can't quite wrap my finger around it.
Picture is worth a thousand words here:

