I have a report that lists the number of hours a resource is allocated for each project they are on. Currently the report shows a subtotal for the number of hours in a given month which updates itself everytime someone filters the data. What they now want is another subtotals field to add together the percentages of a resources allocation and have that total update everytime they filter the data.
Now here's where it gets tricky...the percentage of allocation is based on the total number of hours available for a given month and varies depending on any holidays that are in that month. Additionally some resources are offshore and some resources are US based which means that each month could result in a different number of hours available for those two types of resources.
So far I'm able to get a subtotal for all hours listed in a month collectively which calculates based only on the visible data and I can get a total number of hours for all resources (regardless of whether or not they're visible) in the report split out between the two types and then converting that number to a total of allocation percentages but the problem I'm having is that the later formula keeps spitting out the same number regardless of how I filter the data.
Any ideas on how I can accomplish this?
Here's the formula that I'm using to get a subtotal of the hours in a given month:
=SUBTOTAL(9,M13:M2605)
Here's the formula that I'm using to get the total number of hours for all resources and then converting that number to a total of allocation percentages:
=SUM((SUMIF($G13:$G1048576,"<>Offshore",M13:M1048576)/M3)+(SUMIF($G13:$G1048576,"Offshore",M13:M1048576)/M4))
Here's what the data looks like (or at least the important bits):
Column G (Type)...Column M (Apr-13)...Column N (May-13)
US Based..............88.00......................88.00
US Based..............56.00......................44.00
US Based..............32.00......................44.00
Offshore..............176.00.....................184.00
Offshore..............176.00.....................184.00
Finally to clarify some loose ends, the data starts on row 13 and the total number of hours available in a given month for US Based and Offshore resources are stored in cells M3 & M4 respectively for Apr-13 and N3 & N4 for May-13 and their values are as follows:
Type..........Apr-13.....May-13
US Based...176.00.....176.00
Offshore....176.00.....184.00
If you have any other questions feel free to let me know and any help you can provide will be greatly appreciated.
Travis
Now here's where it gets tricky...the percentage of allocation is based on the total number of hours available for a given month and varies depending on any holidays that are in that month. Additionally some resources are offshore and some resources are US based which means that each month could result in a different number of hours available for those two types of resources.
So far I'm able to get a subtotal for all hours listed in a month collectively which calculates based only on the visible data and I can get a total number of hours for all resources (regardless of whether or not they're visible) in the report split out between the two types and then converting that number to a total of allocation percentages but the problem I'm having is that the later formula keeps spitting out the same number regardless of how I filter the data.
Any ideas on how I can accomplish this?
Here's the formula that I'm using to get a subtotal of the hours in a given month:
=SUBTOTAL(9,M13:M2605)
Here's the formula that I'm using to get the total number of hours for all resources and then converting that number to a total of allocation percentages:
=SUM((SUMIF($G13:$G1048576,"<>Offshore",M13:M1048576)/M3)+(SUMIF($G13:$G1048576,"Offshore",M13:M1048576)/M4))
Here's what the data looks like (or at least the important bits):
Column G (Type)...Column M (Apr-13)...Column N (May-13)
US Based..............88.00......................88.00
US Based..............56.00......................44.00
US Based..............32.00......................44.00
Offshore..............176.00.....................184.00
Offshore..............176.00.....................184.00
Finally to clarify some loose ends, the data starts on row 13 and the total number of hours available in a given month for US Based and Offshore resources are stored in cells M3 & M4 respectively for Apr-13 and N3 & N4 for May-13 and their values are as follows:
Type..........Apr-13.....May-13
US Based...176.00.....176.00
Offshore....176.00.....184.00
If you have any other questions feel free to let me know and any help you can provide will be greatly appreciated.
Travis