Return names and teams ordered by a score you keep private.
The shortlist shows candidate and team, best interview score first, without revealing the scores. In E2, return columns A and B ordered by the score in C, highest first.
Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.
The same formula in the other shapes it takes at work.
SORTBY sorts a range using a separate range as the key.
Order a list by a priority number that is not shown.
Return names and teams ordered by a score you keep private.
This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Candidate | Team | Score | Candidate | Team | |
| 2 | T. Adams | Data | 71 | |||
| 3 | U. Baptiste | Product | 88 | |||
| 4 | V. Chen | Data | 93 | |||
| 5 | W. Diallo | Design | 64 | |||
| 6 | X. Eriksen | Product | 79 |
The by_array only has to match the height of the array, not sit inside it. That separation is what lets the ordering use data the output leaves out.