Display MoreHere is a formula solution as in :
1] In "Output" G4, formula copied across to J4 and all copied down :
=IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($4:$14)/((0+TEXT(COUNTIF($B$18:$B$30,$E$4:$E$14),"[=]1;0"))>=COLUMN($1:$1)),ROWS($1:1))),"")
2] In "Output" K4, formula copied across to P4 and all copied down :
=IFERROR(INDEX($C:$C,AGGREGATE(15,6,ROW($C$18:$C$30)/($B$18:$B$30=J4),COUNTIFS($H$4:$H4,$H4,J$4:J4,J4))),"")
Regards
Hi bosco_yip.
I'm going to repeat my response to Carim to you...
First, I would like to thank you for your time! It is much appreciated. Second, I would like to apologize for my extreme delay in responding. Priorities shifted, and I wasn't able to commit time to this work.
After I started entering my data into the spreadsheet, my results weren't matching what I wanted. Your macro and formula were perfect. My input was not. In trying to simplify my request, I omitted information.
In the output table, columns 'Team - Level 2' thru 'Team - Level n' could have duplicated values similar to 'Team - Level 1'. In the attached file, I've highlighted the new example in purple. Again, this scenario could occur at Level 2 thru Level n.
Please let me know if I'm unclear. Thanks again!