polska2180
Active Member
- Joined
- Oct 1, 2004
- Messages
- 384
- Office Version
- 365
Hi, I'm trying to create a calendar with a PTO allowance per day per week based on the number of weeks we have to cover. The difficulty is that I want to be able to flex any one day/week/month to increase or decrease once the distribution of days is figured out and then recalculate the remaining days evenly through the rest of the year. So let's say on average I need to have 9.6 people off per day per week to cover all the PTO (always round so basically 10.) Now during the months of June and July, I want to increase to 12 people per day per week, and in Feb during one week, I want to decrease to 5 people off per day per week. Once I make that adjustment I would want all the other days that are not changed to be recalculated to ensure that I have enough allowance to cover the remaining time off so in the example that now may be 8.3 people and it would round up to 9. Below is where I got to and I'm getting into circular equations and just not getting to what I need. Thanks for the help. My layout may not be the best and I'm not stuck to it so if there is a better way to do this I'm game. All I need to have is to be able to put in the variables and make specific adjustments during any particular day/week/month.
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2:H31,AV2:AV21,AQ2:AQ31,AL2:AL31,AG2:AG31,AB2:AB31,W2:W31,R2:R31,M2:M31 | H2 | =TEXT(I2,"DDd") |
I2 | I2 | =B7 |
J2:J31,AX2:AX21,AS2:AS31,AN2:AN31,AI2:AI31,AD2:AD31,Y2:Y31,T2:T31,O2:O31 | J2 | =$C$26 |
K2:K31,AY2:AY21,AT2:AT31,AO2:AO31,AJ2:AJ31,AE2:AE31,Z2:Z31,U2:U31,P2:P31 | K2 | =ROUNDUP(J2,0) |
L2 | L2 | =IF(G2="",ROUNDUP(K2,1),G2) |
N2:N6,AW2:AW6,AR2:AR6,AM2:AM6,AH2:AH6,AC2:AC6,X2:X6,S2:S6 | N2 | =I27+7 |
N7:N31,I7:I31,AW7:AW21,AR7:AR31,AM7:AM31,AH7:AH31,AC7:AC31,X7:X31,S7:S31 | N7 | =N2+7 |
I3:I6 | I3 | =I2+1 |
C3:C4 | C3 | =$C$17/B3 |
B8 | B8 | =C3/B6 |
B9 | B9 | =ROUNDUP(B8,0) |
C11 | C11 | =IFERROR(B11*$B$6,"") |
C12 | C12 | =IFERROR(B12*$B$6*2,"") |
C13 | C13 | =IFERROR(B13*$B$6*3,"") |
C14 | C14 | =IFERROR(B14*$B$6*4,"") |
C15 | C15 | =IFERROR(B15*$B$6*5,"") |
C16 | C16 | =IFERROR(B16*$B$6*6,"") |
B17:C17 | B17 | =SUM(B11:B16) |
B21 | B21 | =B8*B4 |
C21 | C21 | =B21/B4 |
B22 | B22 | =B21-B25 |
C22 | C22 | =B22/B4 |
B24 | B24 | =K32+P32+U32+AE32++AJ32+AO32+AT32+AY32+Z32 |
B25 | B25 | =G32+L32+Q32+V32+AA32+AK32+AP32++AU32+AF32 |
B26 | B26 | =B21+B25 |
C26 | C26 | =B26/B4 |
G32,AX32:AY32,AS32:AU32,AN32:AP32,AI32:AK32,AD32:AF32,Y32:AA32,T32:V32,O32:Q32,J32:L32 | G32 | =SUM(G2:G31) |