Suppose you have the following named ranges:
In cell B8
, enter the following array formula (which needs to be confirmed by pressing Ctrl+Shift+Enter on your keyboard upon finishing the formula in the formula bar):
=TEXTJOIN(CHAR(10),1,IF((INDIRECT(B$7)="X")*(INDIRECT($A8)="X"),Functions,""))
Then highlight the output table and click Wrap Text button under Home
tab to display the outcome with line break within the cell.
TEXTJOIN function is only available in Excel 365 and later versions.
A tip here, you can highlight your source table (including headers) and press Ctrl+Shift+F3 on your key board to quickly set the column header (top row) as the name for each range. Then you just need to set up the first row and first column with all types and categories for your output table, and use the above formula to return the desired output.
Let me know if you have any questions. Cheers:)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.