In column A I have a list of employees.
In column B I have the department code relating to each employee
In columns C through N I have the months of the year and the number of days each employee has worked in each month.
In column O I am summing columns C through N, so that for each employee I have the total number of days that they have worked this year.
What I want to do is to have a new sheet which has the 4 department names in Column A and in Columns B,C,D and E I want to be able to return the names of the the top 5 employees by attendance, for each department, by reference to my main worksheet, descibed above.
Perhaps I am missing something but it is proving a tricky formula to come up with.
I have been working on the basis of using an INDEX, SMALL, ROW formula, but the trouble with this is that I can only select the nth smallest values. This may be the wrong track anyway, as I'm having no luck, and want to return the names of the employees with the 5 largest days attendence.
Any ideas/ help appreciated as it's starting to do my head in(!)
In column B I have the department code relating to each employee
In columns C through N I have the months of the year and the number of days each employee has worked in each month.
In column O I am summing columns C through N, so that for each employee I have the total number of days that they have worked this year.
What I want to do is to have a new sheet which has the 4 department names in Column A and in Columns B,C,D and E I want to be able to return the names of the the top 5 employees by attendance, for each department, by reference to my main worksheet, descibed above.
Perhaps I am missing something but it is proving a tricky formula to come up with.
I have been working on the basis of using an INDEX, SMALL, ROW formula, but the trouble with this is that I can only select the nth smallest values. This may be the wrong track anyway, as I'm having no luck, and want to return the names of the employees with the 5 largest days attendence.
Any ideas/ help appreciated as it's starting to do my head in(!)