Listed below is a dummy spreadsheet. I am trying how to get column E not to exceed 24 hours and row 27 column C (total accrued sick time) not to exceed 48.
The formula is regular hours/30=accrued sick time.
You cannot accrue more than 48 and cannot use more than 24 available hours per calendar year. Any ideas?
[TABLE="width: 666"]
<colgroup><col span="2"><col><col span="2"></colgroup><tbody>[TR]
[TD]Pay Period[/TD]
[TD]Pay Period End[/TD]
[TD]Regular Hours[/TD]
[TD]Sick Time Used[/TD]
[TD]Available Hours[/TD]
[/TR]
[TR]
[TD]07/01/17[/TD]
[TD]07/16/17[/TD]
[TD]85.25[/TD]
[TD][/TD]
[TD]2.84[/TD]
[/TR]
[TR]
[TD]07/16/17[/TD]
[TD]07/31/17[/TD]
[TD]94.50[/TD]
[TD][/TD]
[TD]5.99[/TD]
[/TR]
[TR]
[TD]08/01/17[/TD]
[TD]08/16/17[/TD]
[TD]71.00[/TD]
[TD][/TD]
[TD]8.36[/TD]
[/TR]
[TR]
[TD]08/16/17[/TD]
[TD]08/31/17[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]11.29[/TD]
[/TR]
[TR]
[TD]09/01/17[/TD]
[TD]09/15/17[/TD]
[TD]80.00[/TD]
[TD]8.00[/TD]
[TD]5.96[/TD]
[/TR]
[TR]
[TD]09/16/17[/TD]
[TD]09/30/17[/TD]
[TD]80.00[/TD]
[TD][/TD]
[TD]8.63[/TD]
[/TR]
[TR]
[TD]10/01/17[/TD]
[TD]10/15/17[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]11.56[/TD]
[/TR]
[TR]
[TD]10/16/17[/TD]
[TD]10/31/17[/TD]
[TD]72.00[/TD]
[TD][/TD]
[TD]13.96[/TD]
[/TR]
[TR]
[TD]11/01/17[/TD]
[TD]11/15/17[/TD]
[TD]78.75[/TD]
[TD][/TD]
[TD]16.58[/TD]
[/TR]
[TR]
[TD]11/16/17[/TD]
[TD]11/30/17[/TD]
[TD]77.00[/TD]
[TD]16.00[/TD]
[TD]3.15[/TD]
[/TR]
[TR]
[TD]12/01/17[/TD]
[TD]12/15/17[/TD]
[TD]72.00[/TD]
[TD][/TD]
[TD]5.55[/TD]
[/TR]
[TR]
[TD]12/16/17[/TD]
[TD]12/31/17[/TD]
[TD]96.00[/TD]
[TD][/TD]
[TD]8.75[/TD]
[/TR]
[TR]
[TD]01/01/18[/TD]
[TD]01/15/18[/TD]
[TD]80.00[/TD]
[TD][/TD]
[TD]11.42[/TD]
[/TR]
[TR]
[TD]01/16/18[/TD]
[TD]01/31/18[/TD]
[TD]56.00[/TD]
[TD][/TD]
[TD]13.28[/TD]
[/TR]
[TR]
[TD]02/01/18[/TD]
[TD]02/15/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]16.22[/TD]
[/TR]
[TR]
[TD]02/16/18[/TD]
[TD]02/28/18[/TD]
[TD]92.75[/TD]
[TD][/TD]
[TD]19.31[/TD]
[/TR]
[TR]
[TD]03/01/18[/TD]
[TD]03/15/18[/TD]
[TD]80.00[/TD]
[TD][/TD]
[TD]21.98[/TD]
[/TR]
[TR]
[TD]03/16/18[/TD]
[TD]03/31/18[/TD]
[TD]76.50[/TD]
[TD][/TD]
[TD]24.53[/TD]
[/TR]
[TR]
[TD]04/01/18[/TD]
[TD]04/15/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]27.46[/TD]
[/TR]
[TR]
[TD]04/16/18[/TD]
[TD]04/30/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]30.39[/TD]
[/TR]
[TR]
[TD]05/01/18[/TD]
[TD]05/15/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]33.33[/TD]
[/TR]
[TR]
[TD]05/16/18[/TD]
[TD]05/31/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]36.26[/TD]
[/TR]
[TR]
[TD]06/01/18[/TD]
[TD]06/15/18[/TD]
[TD]72.00[/TD]
[TD][/TD]
[TD]38.66[/TD]
[/TR]
[TR]
[TD]06/16/18[/TD]
[TD]06/30/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]41.59[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Total hours[/TD]
[TD]1967.75[/TD]
[TD]24.00[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Total Accrued Sick Time[/TD]
[TD]41.59[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]
The formula is regular hours/30=accrued sick time.
You cannot accrue more than 48 and cannot use more than 24 available hours per calendar year. Any ideas?
[TABLE="width: 666"]
<colgroup><col span="2"><col><col span="2"></colgroup><tbody>[TR]
[TD]Pay Period[/TD]
[TD]Pay Period End[/TD]
[TD]Regular Hours[/TD]
[TD]Sick Time Used[/TD]
[TD]Available Hours[/TD]
[/TR]
[TR]
[TD]07/01/17[/TD]
[TD]07/16/17[/TD]
[TD]85.25[/TD]
[TD][/TD]
[TD]2.84[/TD]
[/TR]
[TR]
[TD]07/16/17[/TD]
[TD]07/31/17[/TD]
[TD]94.50[/TD]
[TD][/TD]
[TD]5.99[/TD]
[/TR]
[TR]
[TD]08/01/17[/TD]
[TD]08/16/17[/TD]
[TD]71.00[/TD]
[TD][/TD]
[TD]8.36[/TD]
[/TR]
[TR]
[TD]08/16/17[/TD]
[TD]08/31/17[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]11.29[/TD]
[/TR]
[TR]
[TD]09/01/17[/TD]
[TD]09/15/17[/TD]
[TD]80.00[/TD]
[TD]8.00[/TD]
[TD]5.96[/TD]
[/TR]
[TR]
[TD]09/16/17[/TD]
[TD]09/30/17[/TD]
[TD]80.00[/TD]
[TD][/TD]
[TD]8.63[/TD]
[/TR]
[TR]
[TD]10/01/17[/TD]
[TD]10/15/17[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]11.56[/TD]
[/TR]
[TR]
[TD]10/16/17[/TD]
[TD]10/31/17[/TD]
[TD]72.00[/TD]
[TD][/TD]
[TD]13.96[/TD]
[/TR]
[TR]
[TD]11/01/17[/TD]
[TD]11/15/17[/TD]
[TD]78.75[/TD]
[TD][/TD]
[TD]16.58[/TD]
[/TR]
[TR]
[TD]11/16/17[/TD]
[TD]11/30/17[/TD]
[TD]77.00[/TD]
[TD]16.00[/TD]
[TD]3.15[/TD]
[/TR]
[TR]
[TD]12/01/17[/TD]
[TD]12/15/17[/TD]
[TD]72.00[/TD]
[TD][/TD]
[TD]5.55[/TD]
[/TR]
[TR]
[TD]12/16/17[/TD]
[TD]12/31/17[/TD]
[TD]96.00[/TD]
[TD][/TD]
[TD]8.75[/TD]
[/TR]
[TR]
[TD]01/01/18[/TD]
[TD]01/15/18[/TD]
[TD]80.00[/TD]
[TD][/TD]
[TD]11.42[/TD]
[/TR]
[TR]
[TD]01/16/18[/TD]
[TD]01/31/18[/TD]
[TD]56.00[/TD]
[TD][/TD]
[TD]13.28[/TD]
[/TR]
[TR]
[TD]02/01/18[/TD]
[TD]02/15/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]16.22[/TD]
[/TR]
[TR]
[TD]02/16/18[/TD]
[TD]02/28/18[/TD]
[TD]92.75[/TD]
[TD][/TD]
[TD]19.31[/TD]
[/TR]
[TR]
[TD]03/01/18[/TD]
[TD]03/15/18[/TD]
[TD]80.00[/TD]
[TD][/TD]
[TD]21.98[/TD]
[/TR]
[TR]
[TD]03/16/18[/TD]
[TD]03/31/18[/TD]
[TD]76.50[/TD]
[TD][/TD]
[TD]24.53[/TD]
[/TR]
[TR]
[TD]04/01/18[/TD]
[TD]04/15/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]27.46[/TD]
[/TR]
[TR]
[TD]04/16/18[/TD]
[TD]04/30/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]30.39[/TD]
[/TR]
[TR]
[TD]05/01/18[/TD]
[TD]05/15/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]33.33[/TD]
[/TR]
[TR]
[TD]05/16/18[/TD]
[TD]05/31/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]36.26[/TD]
[/TR]
[TR]
[TD]06/01/18[/TD]
[TD]06/15/18[/TD]
[TD]72.00[/TD]
[TD][/TD]
[TD]38.66[/TD]
[/TR]
[TR]
[TD]06/16/18[/TD]
[TD]06/30/18[/TD]
[TD]88.00[/TD]
[TD][/TD]
[TD]41.59[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Total hours[/TD]
[TD]1967.75[/TD]
[TD]24.00[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Total Accrued Sick Time[/TD]
[TD]41.59[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
</tbody>[/TABLE]