You need several formulas and order the data as follows:
Excel Workbook |
---|
|
---|
| A | B | C | D | E | F | G | H |
---|
1 | | | | | People who scored | | | |
---|
2 | | Name | Score | | 3 | 4 | 5 | 6 |
---|
3 | | Joanna | 4 | | Emma | Joanna | step | Vane |
---|
4 | | Emma | 3 | | Ben | Carol | Simon | |
---|
5 | | step | 5 | | | Louise | | |
---|
6 | | Vane | 6 | | | | | |
---|
7 | | Carol | 4 | | | | | |
---|
8 | | Ben | 3 | | | | | |
---|
9 | | Simon | 5 | | | | | |
---|
10 | | Louise | 4 | | | | | |
---|
|
---|
[TABLE="class: grid, width: 500"]
[TR]
[TD]Cell[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]E2[/TD]
[TD]=IF(D2="",MIN($C$3:$C$10),IF(D2<MAX($C$3:$C$10),D2+1,""))[/TD]
[/TR]
[/TABLE]
Copy to the right until the first blank cell appears
[TABLE="class: grid, width: 700"]
[TR]
[TD]Cell[/TD]
[TD]Array Formula[/TD]
[/TR]
[TR]
[TD]E3[/TD]
[TD]{=IFERROR(INDEX($B$1:$B$10, SMALL(SI($C$3:$C$10=E$2, ROW()), ROW()-2)),"")}[/TD]
[/TR]
[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself
Copy the formula down to row 10, edit the formula and press Shift + Control + Enter. Then copy the formulas from E3:E11 to column H