palaeontology
Active Member
- Joined
- May 12, 2017
- Messages
- 444
- Office Version
- 2016
- Platform
- Windows
The following is a small excerpt of student numbers, student names, class codes and corresponding teacher names from a much larger list in columns A, B, C, D of a sheet called 'Entry'
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
On another sheet, called 'IndivStudentSelect', in cell V12, I'm entering a class code of my choosing, eg: I might choose to look at the class called 07MAT404
Starting two cells lower than that, in cell V14, I'm entering the following array formula in a hope to make a list of all the students in that class ...
{=IF(V$12="","",IFERROR(INDEX(Entry!$B$1:$B$309,SMALL(IF(Entry!$C$1:$C$309=V$12,ROW(Entry!$C$1:$C$309)-ROW(Entry!$C$1)+1),ROWS(Entry!$C$1:$C1))),""))}
obviously, I'm not typing in the brace brackets into the formula on the sheet. I placed them here, so you'd know I was definitely using an array formula.
What I should be getting is the following list ...
<colgroup><col></colgroup><tbody>
</tbody>Clearly, some names are being repeated, and some are being missed.
I try different class codes, and every time, it always starts to give me repeated names from about the 3rd name into the list, and from there down, it either repeats names, or skips names.
Can anyone see what is wrong with my array formula ?
Student Number | Student Name | Class Code | Teacher |
85464 | ALLEN, Jake | 07MAT303 | SPERE |
62092 | AXELSEN, Olivia | 07MAT303 | SPERE |
84723 | BAZIN, Lille | 07MAT303 | SPERE |
87213 | BULLER, Thomas | 07MAT303 | SPERE |
56913 | CAMPBELL, Archie | 07MAT303 | SPERE |
87649 | CHRISTOU, Emily | 07MAT303 | SPERE |
85163 | CHURCHILL, Liv | 07MAT303 | SPERE |
81515 | EVANS, Jayden | 07MAT303 | SPERE |
55794 | FENTON, Zara | 07MAT303 | SPERE |
67378 | FORRESTER, Christian | 07MAT303 | SPERE |
84405 | GRAETZ, Tom | 07MAT303 | SPERE |
67076 | HARVIE, Matthew | 07MAT303 | SPERE |
57181 | KILLEN, Finn | 07MAT303 | SPERE |
75487 | KING, James | 07MAT303 | SPERE |
79921 | LIU, William | 07MAT303 | SPERE |
62769 | MCKEE, Jack | 07MAT303 | SPERE |
67950 | METZNER, Sachiko | 07MAT303 | SPERE |
85910 | NEILSEN, Emma | 07MAT303 | SPERE |
86420 | NOTT, Maya | 07MAT303 | SPERE |
81547 | SNEATH, Bradley | 07MAT303 | SPERE |
81699 | SODHI, Jujhar | 07MAT303 | SPERE |
86286 | VAN BEEST, Kye | 07MAT303 | SPERE |
79970 | WOODS, Annabel | 07MAT303 | SPERE |
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
77710 | ALLAN, Thomas | 07MAT404 | RTHOM |
81557 | CATFORD, Olivia | 07MAT404 | RTHOM |
82638 | DUNN, Cameron | 07MAT404 | RTHOM |
70063 | FITZGERALD, Harry | 07MAT404 | RTHOM |
60070 | FOLEY, Oscar | 07MAT404 | RTHOM |
86424 | FOWLER, Matthew | 07MAT404 | RTHOM |
61329 | HAMILTON, Bobby | 07MAT404 | RTHOM |
72306 | HARRISON, Jessica | 07MAT404 | RTHOM |
85281 | HARTDEGEN, Siena | 07MAT404 | RTHOM |
64249 | HILE, Ronan | 07MAT404 | RTHOM |
85108 | KENNER, Makenza | 07MAT404 | RTHOM |
79361 | LEES, Sonya | 07MAT404 | RTHOM |
77920 | LONGMIRE, Hugh | 07MAT404 | RTHOM |
74840 | MARTIN, Sophie | 07MAT404 | RTHOM |
77186 | MCLEOD, Max | 07MAT404 | RTHOM |
71436 | MESSER, Bridget | 07MAT404 | RTHOM |
78262 | NGUYEN-TRAN, Aiden | 07MAT404 | RTHOM |
80654 | OSTINI, Tobias | 07MAT404 | RTHOM |
84830 | OTAKE, Haru | 07MAT404 | RTHOM |
86109 | PEDLEY, Charlotte | 07MAT404 | RTHOM |
58041 | POON, Keenan | 07MAT404 | RTHOM |
64520 | RICHARDSON, Yenn | 07MAT404 | RTHOM |
83246 | SCHMIDT, Gabrielle | 07MAT404 | RTHOM |
68713 | STONE, Nicola | 07MAT404 | RTHOM |
87642 | BAEK, Bryan | 07MAT501 | GBYGR |
81555 | BANGA, Pragun | 07MAT501 | GBYGR |
84747 | BELL, Dominic | 07MAT501 | GBYGR |
77108 | BRENNAN, Poppy | 07MAT501 | GBYGR |
78158 | DUVAL, Brianna | 07MAT501 | GBYGR |
84980 | ENARES-WORMALD, Grace | 07MAT501 | GBYGR |
78096 | FINLAYSON, Joe | 07MAT501 | GBYGR |
58463 | HALL, Matthew | 07MAT501 | GBYGR |
74333 | IVERMEE, Joe | 07MAT501 | GBYGR |
83550 | JOYCE, Imogen | 07MAT501 | GBYGR |
81512 | KETTLE, Zoe | 07MAT501 | GBYGR |
83879 | KING, Luka | 07MAT501 | GBYGR |
72297 | KRUGER, Sophie | 07MAT501 | GBYGR |
75206 | MADDOCK, Isabel | 07MAT501 | GBYGR |
87653 | MARSDEN, Kate | 07MAT501 | GBYGR |
57653 | MATHER, Chloe | 07MAT501 | GBYGR |
85595 | MONCUR, Marcus | 07MAT501 | GBYGR |
81757 | RAMSAY, Lily | 07MAT501 | GBYGR |
57006 | STAPLES, Ed | 07MAT501 | GBYGR |
84343 | TALJAARD, Chloe | 07MAT501 | GBYGR |
77816 | VOORHOEVE, Jules | 07MAT501 | GBYGR |
74802 | WHITEHEAD, Josh | 07MAT501 | GBYGR |
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
On another sheet, called 'IndivStudentSelect', in cell V12, I'm entering a class code of my choosing, eg: I might choose to look at the class called 07MAT404
Starting two cells lower than that, in cell V14, I'm entering the following array formula in a hope to make a list of all the students in that class ...
{=IF(V$12="","",IFERROR(INDEX(Entry!$B$1:$B$309,SMALL(IF(Entry!$C$1:$C$309=V$12,ROW(Entry!$C$1:$C$309)-ROW(Entry!$C$1)+1),ROWS(Entry!$C$1:$C1))),""))}
obviously, I'm not typing in the brace brackets into the formula on the sheet. I placed them here, so you'd know I was definitely using an array formula.
What I should be getting is the following list ...
ALLAN, Thomas | |||||||||||||||
CATFORD, Olivia | |||||||||||||||
DUNN, Cameron | |||||||||||||||
FITZGERALD, Harry | |||||||||||||||
FOLEY, Oscar | |||||||||||||||
FOWLER, Matthew | |||||||||||||||
HAMILTON, Bobby | |||||||||||||||
HARRISON, Jessica | |||||||||||||||
HARTDEGEN, Siena | |||||||||||||||
HILE, Ronan | |||||||||||||||
KENNER, Makenza | |||||||||||||||
LEES, Sonya | |||||||||||||||
LONGMIRE, Hugh | |||||||||||||||
MARTIN, Sophie | |||||||||||||||
MCLEOD, Max | |||||||||||||||
MESSER, Bridget | |||||||||||||||
NGUYEN-TRAN, Aiden | |||||||||||||||
OSTINI, Tobias | |||||||||||||||
OTAKE, Haru | |||||||||||||||
PEDLEY, Charlotte | |||||||||||||||
POON, Keenan | |||||||||||||||
RICHARDSON, Yenn | |||||||||||||||
SCHMIDT, Gabrielle | |||||||||||||||
STONE, Nicola But what I seem to be getting is the following ....
<colgroup><col></colgroup><tbody> </tbody> |
<colgroup><col></colgroup><tbody>
</tbody>
I try different class codes, and every time, it always starts to give me repeated names from about the 3rd name into the list, and from there down, it either repeats names, or skips names.
Can anyone see what is wrong with my array formula ?