Use TAKE to extract the rows and columns you need, then combine it with other functions to build dynamic Excel reports.
Even though the top row is correct, the answer becomes strange when the formula is copied downward. In such cases, before ...
TRIMRANGE cleans up dynamic arrays, sorts expanding lists, and combines worksheets without dragging empty rows and columns ...