My excel spreadsheet contains
Name Grade Status
Paul 3 M
Paul 3 P
Paul 4 P
Steve 5 O
Steve 5 O
Nick 6 O
.
Assuming that you have names in cells A1:A4
in Data
worksheet, the formula for Paul worksheet will be:
=IFERROR(OFFSET(INDEX(Data!$A$1:$A$4,SMALL(IF(Data!$A$1:$A$4="Paul",ROW(Data!$A$1:$A$4),""),ROW(1:1))),0,COLUMN(A:A)-1),"")
Mind you, this is an array formula, which means that you have to enter it with the combination: Ctrl+Shift+Enter.
Now you have to just fill down and to the right to as many cells as you want.