Ok. Here we are.
In F2 and copy down.(Column F will be a helper and hidden column)
=IF(C2<=13;"A";IF(AND(C2>13;C2<=26);26;IF(AND(C2>26;C2<=39);39;IF(AND(C2>39;C2<=52);52;IF(AND(C2>52;C2<=104);104;150)))))
Then in G2 this ARRAY(Meaning that you have to confirm this using Control+Shift+Enter-Not just Enter) Formula.
=IFERROR(INDEX($D$2:$D$18;SMALL(IF($F$2:$F$18=13;ROW($D$2:$D$18)-1);ROW(D1)));"")
Drag down. Same formula for the other colums changing the bold red number.
In all my formulas here you need to change semi colons to comma. But in The example sheet is OK!
Bookmarks