Vacation Schedule

polska2180

Active Member
Joined
Oct 1, 2004
Messages
384
Office Version
  1. 365
Hi, I'm looking to make or find a spreadsheet that will provide allotment of people that can have PTO by week based on the number of hours of PTO available and 260 days. Additionally, looking to be able to flex certain parts of the year and reduce number of people for a period of time and the rest of the year adjusts based on what I reduced. For example

Assuming that the number of hours available for PTO equals to 40 per day and 200 per week effectively 5 people can have off per week. The distribution would then be 5 people per week all year long. Now lets for mothers day and fathers day weeks I cannot have any folks off (it doesn't have to be all or nothing just using this as example). Then those 10 people (5 each of the week) or 400 hours would get redistributed equally throughout the rest of the year and because I cannot have part of the person off it would round up. Thanks for the help.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
you can expand for the entire year with this:
Book1
ABCDEF
1PTO Hours per Day40people per day5per week200
2per year10400Work Days250
3DateWeek NumberWeekend or WorkPTO allowed?Daily PTOWeekly PTO
41/1/20221Weekendyes00
51/2/20222Weekendyes00
61/3/20222Workyes42208
71/4/20222Workyes42208
81/5/20222Workyes42208
91/6/20222Workyes42208
101/7/20222Workyes42208
111/8/20222Weekendyes00
121/9/20223Weekendyes00
131/10/20223Workyes42208
141/11/20223Workyes42208
151/12/20223Workyes42208
161/13/20223Workyes42208
171/14/20223Workyes42208
181/15/20223Weekendyes00
191/16/20224Weekendyes00
201/17/20224Workyes42208
211/18/20224Workyes42208
221/19/20224Workyes42208
231/20/20224Workyes42208
241/21/20224Workyes42208
251/22/20224Weekendyes00
261/23/20225Weekendyes00
271/24/20225Workyes42208
281/25/20225Workyes42208
291/26/20225Workyes42208
301/27/20225Workyes42208
311/28/20225Workyes42208
321/29/20225Weekendyes00
331/30/20226Weekendyes00
341/31/20226Workyes42208
352/1/20226Workyes42208
362/2/20226Workyes42208
372/3/20226Workyes42208
382/4/20226Workyes42208
392/5/20226Weekendyes00
402/6/20227Weekendyes00
412/7/20227Workyes42208
422/8/20227Workyes42208
432/9/20227Workyes42208
442/10/20227Workyes42208
452/11/20227Workyes42208
462/12/20227Weekendyes00
472/13/20228Weekendyes00
482/14/20228Workyes42208
492/15/20228Workyes42208
502/16/20228Workyes42208
512/17/20228Workyes42208
522/18/20228Workyes42208
532/19/20228Weekendyes00
542/20/20229Weekendyes00
552/21/20229Workyes42208
562/22/20229Workyes42208
572/23/20229Workyes42208
582/24/20229Workyes42208
592/25/20229Workyes42208
602/26/20229Weekendyes00
612/27/202210Weekendyes00
622/28/202210Workyes42208
633/1/202210Workyes42208
643/2/202210Workyes42208
653/3/202210Workyes42208
663/4/202210Workyes42208
673/5/202210Weekendyes00
683/6/202211Weekendyes00
693/7/202211Workyes42208
703/8/202211Workyes42208
713/9/202211Workyes42208
723/10/202211Workyes42208
733/11/202211Workyes42208
743/12/202211Weekendyes00
753/13/202212Weekendyes00
763/14/202212Workyes42208
773/15/202212Workyes42208
783/16/202212Workyes42208
793/17/202212Workyes42208
803/18/202212Workyes42208
813/19/202212Weekendyes00
823/20/202213Weekendyes00
833/21/202213Workyes42208
843/22/202213Workyes42208
853/23/202213Workyes42208
863/24/202213Workyes42208
873/25/202213Workyes42208
883/26/202213Weekendyes00
893/27/202214Weekendyes00
903/28/202214Workyes42208
913/29/202214Workyes42208
923/30/202214Workyes42208
933/31/202214Workyes42208
944/1/202214Workyes42208
954/2/202214Weekendyes00
964/3/202215Weekendyes00
974/4/202215Workyes42208
984/5/202215Workyes42208
994/6/202215Workyes42208
1004/7/202215Workyes42208
1014/8/202215Workyes42208
1024/9/202215Weekendyes00
1034/10/202216Weekendyes00
1044/11/202216Workyes42208
1054/12/202216Workyes42208
1064/13/202216Workyes42208
1074/14/202216Workyes42208
1084/15/202216Workyes42208
1094/16/202216Weekendyes00
1104/17/202217Weekendyes00
1114/18/202217Workyes42208
1124/19/202217Workyes42208
1134/20/202217Workyes42208
1144/21/202217Workyes42208
1154/22/202217Workyes42208
1164/23/202217Weekendyes00
1174/24/202218Weekendyes00
1184/25/202218Workyes42208
1194/26/202218Workyes42208
1204/27/202218Workyes42208
1214/28/202218Workyes42208
1224/29/202218Workyes42208
1234/30/202218Weekendyes00
1245/1/202219Weekendyes00
1255/2/202219Workyes42208
1265/3/202219Workyes42208
1275/4/202219Workyes42208
1285/5/202219Workyes42208
1295/6/202219Workyes42208
1305/7/202219Weekendyes00
1315/8/202220Weekendyes00
1325/9/202220Workyes42208
1335/10/202220Workyes42208
1345/11/202220Workyes42208
1355/12/202220Workyes42208
1365/13/202220Workyes42208
1375/14/202220Weekendno00
1385/15/202221Weekendno00
1395/16/202221Workno00
1405/17/202221Workno00
1415/18/202221Workno00
1425/19/202221Workno00
1435/20/202221Workno00
1445/21/202221Weekendyes00
1455/22/202222Weekendyes00
basic
Cell Formulas
RangeFormula
F1F1=B1*D1
B2B2=F1*(COUNTIF(C:C,"work")/5)
D2D2=COUNTIFS(C:C,"Work",D:D,"yes")
B4:B145B4=WEEKNUM(A4)
C4,C6:C145C4=IF(OR(WEEKDAY(A4)={1,7}),"Weekend","Work")
C5C5=IF(OR(WEEKDAY(A5)=1),"Weekend","Work")
E4:E145E4=IF(AND(C4="Work",D4="yes"),$B$2/$D$2,0)
F4:F145F4=IF([@[Daily PTO]]>0,SUMIF(B:E,[@[Week Number]],E:E),0)
Cells with Data Validation
CellAllowCriteria
D4:D145Listyes,no,holiday
 
Upvote 0
i also came up with a possible solution to allow for 1-5 people off per certain days and reallocating the unused hours to the rest of the normal days of the year with no restrictions.
 
Upvote 0
i also came up with a possible solution to allow for 1-5 people off per certain days and reallocating the unused hours to the rest of the normal days of the year with no restrictions.
Ok working on putting this into a spreadsheet and will ask follow ups I'm sure. I guess first TY wasn't sure how to go out this at first. I'm getting syntax error if f4?
 

Attachments

  • Screenshot 2022-07-28 111439.png
    Screenshot 2022-07-28 111439.png
    77.1 KB · Views: 6
Upvote 0
i also came up with a possible solution to allow for 1-5 people off per certain days and reallocating the unused hours to the rest of the normal days of the year with no restrictions.
ok so this would be something needed and the range would depend on number of people on staff. For example assuming 100 people on staff and varied tenure and ranging in vacation time from 1-6 weeks depending on tenure it may land at 7 people that need to be off per day and thus the range now would be 1-7.
 
Upvote 0
Ok working on putting this into a spreadsheet and will ask follow ups I'm sure. I guess first TY wasn't sure how to go out this at first. I'm getting syntax error if f4?
are you using the same named ranges i have in the table? if not then you would need to adjust the formula.
 
Upvote 0

Forum statistics

Threads
1,214,887
Messages
6,122,095
Members
449,064
Latest member
Danger_SF

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top