AndrewPhoenix
New Member
- Joined
- May 16, 2016
- Messages
- 3
Hello
I am trying to create a sheet to calculate available resources week by week based on a gant chart, I have simplified the sheet below-
<colgroup><col style="width: 37px"><col width="101"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"></colgroup><tbody style="margin: 0px; padding: 0px; border: 0px;">
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[TD="align: center"]K[/TD]
[TD="align: center"]L[/TD]
[TD="align: center"]1[/TD]
[TD="colspan: 5, align: center"]Week 22[/TD]
[TD="colspan: 5, align: center"]Week 23[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]30/05[/TD]
[TD="align: center"]31/05[/TD]
[TD="align: center"]01/06[/TD]
[TD="align: center"]02/06[/TD]
[TD="align: center"]03/06[/TD]
[TD="align: center"]06/06[/TD]
[TD="align: center"]07/06[/TD]
[TD="align: center"]08/06[/TD]
[TD="align: center"]09/06[/TD]
[TD="align: center"]10/06[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Hol[/TD]
[TD="align: center"]Hol[/TD]
[TD="align: center"]Hol[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]Off site[/TD]
[TD="align: center"]Off site[/TD]
[TD="align: center"]Off site[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]W/C[/TD]
[TD="align: center"]30/05[/TD]
[TD="align: center"]06/06[/TD]
[TD="align: center"]13/06[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]PM[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]BA[/TD]
[TD="align: center"]13[/TD]
[TD="align: center"]PA[/TD]
</tbody>
The top table will be populated with peoples availability, a blank cell will represent when an employee is available. So in the lower table I am looking to populate cells B11:D13 with a formula that will calculate the number of resources available for that week, for the corresponding job type. I am hoping that the formula can look across the whole table so can be easily reproduced for the next week in the lower table, and will react if an employers job role changes in the upper table. I have previously created similar formulas to what I require with SUMIFS functions, but the difference to these is I now need to COUNTIF, and this function will not let me COUNTIF based on criteria outside the range/cells that are actually being counted.
So broken down, the formula that I would like in cell B11 would ideally look something like this- COUNTIFS(C3:L8,"=""",$B3:$B8,"<wbr>="&A11,C$2:G$2,AND(>=B10,<B10+<wbr>5))
I understand that the above formula will no work for a number of reason, but I hope that the idea of it gives a clearer idea of what I am trying to achieve. I am looking to return the number of cells that are blank, that correspond to the week commencing 30/05, and that have the job role of a PM.
Any help would be greatly appreciated.
Andrew
I am trying to create a sheet to calculate available resources week by week based on a gant chart, I have simplified the sheet below-
Name | Job role | ||||||||||
John | PM | ||||||||||
Steve | PM | ||||||||||
Stuart | BA | ||||||||||
Andrew | PM | ||||||||||
Debbie | PA | ||||||||||
Julie | BA | ||||||||||
<colgroup><col style="width: 37px"><col width="101"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"><col width="58"></colgroup><tbody style="margin: 0px; padding: 0px; border: 0px;">
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[TD="align: center"]K[/TD]
[TD="align: center"]L[/TD]
[TD="align: center"]1[/TD]
[TD="colspan: 5, align: center"]Week 22[/TD]
[TD="colspan: 5, align: center"]Week 23[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]30/05[/TD]
[TD="align: center"]31/05[/TD]
[TD="align: center"]01/06[/TD]
[TD="align: center"]02/06[/TD]
[TD="align: center"]03/06[/TD]
[TD="align: center"]06/06[/TD]
[TD="align: center"]07/06[/TD]
[TD="align: center"]08/06[/TD]
[TD="align: center"]09/06[/TD]
[TD="align: center"]10/06[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Hol[/TD]
[TD="align: center"]Hol[/TD]
[TD="align: center"]Hol[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]Off site[/TD]
[TD="align: center"]Off site[/TD]
[TD="align: center"]Off site[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]W/C[/TD]
[TD="align: center"]30/05[/TD]
[TD="align: center"]06/06[/TD]
[TD="align: center"]13/06[/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]PM[/TD]
[TD="align: center"]12[/TD]
[TD="align: center"]BA[/TD]
[TD="align: center"]13[/TD]
[TD="align: center"]PA[/TD]
</tbody>
The top table will be populated with peoples availability, a blank cell will represent when an employee is available. So in the lower table I am looking to populate cells B11:D13 with a formula that will calculate the number of resources available for that week, for the corresponding job type. I am hoping that the formula can look across the whole table so can be easily reproduced for the next week in the lower table, and will react if an employers job role changes in the upper table. I have previously created similar formulas to what I require with SUMIFS functions, but the difference to these is I now need to COUNTIF, and this function will not let me COUNTIF based on criteria outside the range/cells that are actually being counted.
So broken down, the formula that I would like in cell B11 would ideally look something like this- COUNTIFS(C3:L8,"=""",$B3:$B8,"<wbr>="&A11,C$2:G$2,AND(>=B10,<B10+<wbr>5))
I understand that the above formula will no work for a number of reason, but I hope that the idea of it gives a clearer idea of what I am trying to achieve. I am looking to return the number of cells that are blank, that correspond to the week commencing 30/05, and that have the job role of a PM.
Any help would be greatly appreciated.
Andrew