I am looking for an Excel 365 formula to join data together in a single cell by a category and the data to be further broken out buy a subcategory on separate lines within the category cell. Please see my example data and results. I would be grateful for any help with formula ideas.
example data
results
I attempted to use TEXTJOIN and UNIQUE functions, but was not sure how to embed the multiple categories TEXTJOIN within a formula.