derek.hughes
Board Regular
- Joined
- Mar 16, 2012
- Messages
- 53
This sheet has thousands of rows of data, but this is a "snippet" of what I am trying to accomplish.
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Bargain Unit[/TD]
[TD="align: center"]Pay Class[/TD]
[TD="align: center"]FTE[/TD]
[/TR]
[TR]
[TD="align: center"]John Doe[/TD]
[TD="align: center"]220[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]0.05[/TD]
[/TR]
[TR]
[TD="align: center"]John Doe[/TD]
[TD="align: center"]220[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]0.10[/TD]
[/TR]
[TR]
[TD="align: center"]John Doe[/TD]
[TD="align: center"]220[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]0.10[/TD]
[/TR]
[TR]
[TD="align: center"]John Doe[/TD]
[TD="align: center"]220[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]0.50[/TD]
[/TR]
[TR]
[TD="align: center"]John Doe[/TD]
[TD="align: center"]220[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]0.25[/TD]
[/TR]
</tbody>[/TABLE]
I have employees that work in the same bargaining units, but under different pay classes. I essentially want a script that will:
In the example above it would leave behind the last two rows - by the way I do not need it to leave behind the summed total of the FTE, I just used that to explain how I want the Macro to decide which rows to remove.
Thanks!
Derek
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Bargain Unit[/TD]
[TD="align: center"]Pay Class[/TD]
[TD="align: center"]FTE[/TD]
[/TR]
[TR]
[TD="align: center"]John Doe[/TD]
[TD="align: center"]220[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]0.05[/TD]
[/TR]
[TR]
[TD="align: center"]John Doe[/TD]
[TD="align: center"]220[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]0.10[/TD]
[/TR]
[TR]
[TD="align: center"]John Doe[/TD]
[TD="align: center"]220[/TD]
[TD="align: center"]15[/TD]
[TD="align: center"]0.10[/TD]
[/TR]
[TR]
[TD="align: center"]John Doe[/TD]
[TD="align: center"]220[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]0.50[/TD]
[/TR]
[TR]
[TD="align: center"]John Doe[/TD]
[TD="align: center"]220[/TD]
[TD="align: center"]20[/TD]
[TD="align: center"]0.25[/TD]
[/TR]
</tbody>[/TABLE]
I have employees that work in the same bargaining units, but under different pay classes. I essentially want a script that will:
- Figure out the Sum of the FTE, by Pay Class (Subtotal)
- Remove duplicates, leaving behind the rows with the LARGEST SUM of FTE
In the example above it would leave behind the last two rows - by the way I do not need it to leave behind the summed total of the FTE, I just used that to explain how I want the Macro to decide which rows to remove.
Thanks!
Derek