I have a two-dimensional grid of information (link to actual sheet), like so:
As you can see, there are items (money, time, and so on) that might be selected for each year. The items are grouped into categories, necessities and luxuries.
I want to produce a compact summary of selected items, that also groups items according to their categories, like this:
I think that I need something that includes xlookup(), but I can't see how I would get the category information too.
Any suggestions on what approach to take? I don't mind too much about the format of the summary, as long as it respects the order of the years.

