Good day again,
I need to find the Max volunteered hours for each unit. I believe this is going to be an array, but could someone help me put it together.
Data Table
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Unit[/TD]
[TD]Employee[/TD]
[TD]Total Volunteer Hours[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]a[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]a[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]b[/TD]
[TD]57[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]c[/TD]
[TD]35[/TD]
[/TR]
</TBODY>[/TABLE]
The result table should look like
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Unit[/TD]
[TD]Employee[/TD]
[TD]Total Volunteer Hours[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]b[/TD]
[TD]57[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]a[/TD]
[TD]24[/TD]
[/TR]
</TBODY>[/TABLE]
I may also need to figure out if 2 or more people from the same unit have the same amount of hours. If that is the case the result should be
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Unit[/TD]
[TD]Employee[/TD]
[TD]Total Volunteer Hours[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]b, d[/TD]
[TD]57[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]a[/TD]
[TD]24[/TD]
[/TR]
</TBODY>[/TABLE]
I need to find the Max volunteered hours for each unit. I believe this is going to be an array, but could someone help me put it together.
Data Table
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Unit[/TD]
[TD]Employee[/TD]
[TD]Total Volunteer Hours[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]a[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]a[/TD]
[TD]24[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]b[/TD]
[TD]57[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]c[/TD]
[TD]35[/TD]
[/TR]
</TBODY>[/TABLE]
The result table should look like
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Unit[/TD]
[TD]Employee[/TD]
[TD]Total Volunteer Hours[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]b[/TD]
[TD]57[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]a[/TD]
[TD]24[/TD]
[/TR]
</TBODY>[/TABLE]
I may also need to figure out if 2 or more people from the same unit have the same amount of hours. If that is the case the result should be
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Unit[/TD]
[TD]Employee[/TD]
[TD]Total Volunteer Hours[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]b, d[/TD]
[TD]57[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]a[/TD]
[TD]24[/TD]
[/TR]
</TBODY>[/TABLE]