Hi Hi IrrepressibleXL, give this a try.
Firstly open all 3 workbook. In Overview b1 enter,
=COUNTA('[Class 1 Scores.xlsx]Sheet1'!B6:B100)
Note; Change Class 1 Scores.xlsx to your file name. to get name easily, type = in b1 then activate another file & click any cell, then just change the cell reference. In C1 use same formula just change the file name.
In B4, with CTRL+SHIFT+ENTER, rather than just ENTER
=IF(ROWS(B$4:B4)<=B$1,INDEX('[Class 1 Scores.xlsx]Sheet1'!B:B,SMALL(IF('[Class 1 Scores.xlsx]Sheet1'!B$6:B$100<>"",ROW(B$6:B$100)),ROWS(B$4:B4))),IF(ROWS(B$4:B4)<=B$1+C$1,INDEX('[Class 2 Scores.xlsx]Sheet1'!B:B,SMALL(IF('[Class 2 Scores.xlsx]Sheet1'!B$6:B$100<>"",ROW(B$6:B$100)),ROWS(B$4:B4)-B$1)),""))
This will return all the names from 2 workbooks. (Assume you will never have duplicate names)
In C4,
=IF(B4="","",IF(ISNUMBER(MATCH(B4,'[Class 1 Scores.xlsx]Sheet1'!$B:$B,0)),'[Class 1 Scores.xlsx]Sheet1'!C$2,IF(ISNUMBER(MATCH(B4,'[Class 2 Scores.xlsx]Sheet1'!$B:$B,0)),'[Class 2 Scores.xlsx]Sheet1'!C$2,"")))
This will return their classes
In D4, then copy & down & across.
=IF($B4="","",SUMPRODUCT(('[Class 1 Scores.xlsx]Sheet1'!$B$6:$B$100=$B4)+0,'[Class 1 Scores.xlsx]Sheet1'!C$6:C$100)+SUMPRODUCT(('[Class 2 Scores.xlsx]Sheet1'!$B$6:$B$100=$B4)+0,'[Class 2 Scores.xlsx]Sheet1'!C$6:C$100))
Assume all the test numbers are in same columns in both files. C:L
Hope this helps.
Bookmarks