R
RM270
Hello all. I have a list I am working with in excel 2003. The columns I am
interested in are Employee, Overtime Code, Pay and Comp. There are
approximately 50
overtime codes. I need to total the pay and comp columns for each employee.
My problem is that if the OT codes are certain numbers, they will not be used
in the calcualtions. Like so:
EMPLOYEE OT CODE PAY COMP
Jones 1 4 0
Jones 6 4 0
Jones 5.02 0 4
Jones 18 2 0
Jones 9 0 4
Smith 5.02 0 4
Smith 7 1 0
Smith 9 2 0
Smith 17.4 0 1
Smith 1 0 4
The overtime codes of 1 and 9 are not to be used in the caluclations, so my
totals will be
Jones 6 4
Smith 1 5
Any help on how to do this? I can do it in either a list or a regular range
of cells. I thought I macro might help, but I'm having trouble figuring out
how to do it.
Thanks for any help.
interested in are Employee, Overtime Code, Pay and Comp. There are
approximately 50
overtime codes. I need to total the pay and comp columns for each employee.
My problem is that if the OT codes are certain numbers, they will not be used
in the calcualtions. Like so:
EMPLOYEE OT CODE PAY COMP
Jones 1 4 0
Jones 6 4 0
Jones 5.02 0 4
Jones 18 2 0
Jones 9 0 4
Smith 5.02 0 4
Smith 7 1 0
Smith 9 2 0
Smith 17.4 0 1
Smith 1 0 4
The overtime codes of 1 and 9 are not to be used in the caluclations, so my
totals will be
Jones 6 4
Smith 1 5
Any help on how to do this? I can do it in either a list or a regular range
of cells. I thought I macro might help, but I'm having trouble figuring out
how to do it.
Thanks for any help.