Hello! I have a problem with an excel sheet for work. Hope you can help!
I have to order employees by their entry time to work, and also by their role inside the company.
So, for example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Colum A[/TD]
[TD]Colum B[/TD]
[TD]Colum C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Matt (regular employee)
[/TD]
[TD]07:00[/TD]
[TD]15:00[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Philip (supervisor)[/TD]
[TD]07:00[/TD]
[TD]15:00[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Oscar (supervisor)[/TD]
[TD]08:00[/TD]
[TD]16:00[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Jennifer (regular employee)[/TD]
[TD]09:00[/TD]
[TD]17:00[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ben (duty manager)[/TD]
[TD]08:00[/TD]
[TD]16:00
[/TD]
[/TR]
</tbody>[/TABLE]
The role order is: Duty manager > Supervisor > Regular employee
So for this purpose I have use conditionals cell colors: Duty manager is RED, Supervisor is Green, Regular employee is Blue.
This way I can sort first colum A by color (RED>GREEN>BLUE), and then sort by entry time. The result would be:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Colum A[/TD]
[TD]Colum B[/TD]
[TD]Colum C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Ben (duty manager)[/TD]
[TD]08:00[/TD]
[TD]16:00[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Philip (supervisor)[/TD]
[TD]07:00[/TD]
[TD]15:00[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Oscar (supervisor)[/TD]
[TD]08:00[/TD]
[TD]16:00[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Matt (regular employee)[/TD]
[TD]07:00[/TD]
[TD]15:00[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Jennifer (regular employee)[/TD]
[TD]09:00[/TD]
[TD]17:00[/TD]
[/TR]
</tbody>[/TABLE]
I can do this easily with the regular sort and filter button. But I have to do it for all the days of the month, one at a time, for too many employees, and I lose so many time doing this.
I had try creating a macro for this, but it is driving me crazy. Please could you help me???
PD: Sorry for my english, hope you understand everything.
I have to order employees by their entry time to work, and also by their role inside the company.
So, for example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Colum A[/TD]
[TD]Colum B[/TD]
[TD]Colum C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Matt (regular employee)
[/TD]
[TD]07:00[/TD]
[TD]15:00[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Philip (supervisor)[/TD]
[TD]07:00[/TD]
[TD]15:00[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Oscar (supervisor)[/TD]
[TD]08:00[/TD]
[TD]16:00[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Jennifer (regular employee)[/TD]
[TD]09:00[/TD]
[TD]17:00[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Ben (duty manager)[/TD]
[TD]08:00[/TD]
[TD]16:00
[/TD]
[/TR]
</tbody>[/TABLE]
The role order is: Duty manager > Supervisor > Regular employee
So for this purpose I have use conditionals cell colors: Duty manager is RED, Supervisor is Green, Regular employee is Blue.
This way I can sort first colum A by color (RED>GREEN>BLUE), and then sort by entry time. The result would be:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Colum A[/TD]
[TD]Colum B[/TD]
[TD]Colum C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Ben (duty manager)[/TD]
[TD]08:00[/TD]
[TD]16:00[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Philip (supervisor)[/TD]
[TD]07:00[/TD]
[TD]15:00[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Oscar (supervisor)[/TD]
[TD]08:00[/TD]
[TD]16:00[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Matt (regular employee)[/TD]
[TD]07:00[/TD]
[TD]15:00[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Jennifer (regular employee)[/TD]
[TD]09:00[/TD]
[TD]17:00[/TD]
[/TR]
</tbody>[/TABLE]
I can do this easily with the regular sort and filter button. But I have to do it for all the days of the month, one at a time, for too many employees, and I lose so many time doing this.
I had try creating a macro for this, but it is driving me crazy. Please could you help me???
PD: Sorry for my english, hope you understand everything.