Scheduling Workdays with Half Days

MrCameronExcel

New Member
Joined
Apr 21, 2017
Messages
43
Office Version
  1. 365
Platform
  1. Windows
I would like to schedule workdays, but the WORKDAY formula I was using didn't capture half days.

In columns B-I is confirmation of whether or not work is required. 1 = work required, 0 = no work required.

All the start dates in column J (Large Lounge dated) are accurate and will remain. There can only be four rooms with the same date, and the priority is from top left to bottom right (Flat 1 Large Lounge - Flat 4 WC), but work must be spread across two flats, hence you see flat 1 and 2 work is carried out alongside each other (more or less).

I am using half days to make the formula work so Flat 4 Large Lounge is 18/01/2023 + 0.5 (following on from Flat 2 Bathroom 18/01/2023). This is verified in the TEST column where Flat 4 Small Lounge +0.5 = 19/01/2023.

But when I use the following formula in Flat 4 Small Lounge, it doesn't account for the half day. I need a way to get around this. I am thinking about trying to use a WEEKDAY formula in some way instead of WORKDAY.
=IF(Flat 4 Small Lounge=1, WORKDAY(Flat 4 Large Lounge (date), 0.5, 0), "")


TABLE 1

FlatLarge LoungeSmall LoungeBedroom 1Bedroom 2Bedroom 3KitchenBathroomWCLarge LoungeSmall LoungeBedroom 1Bedroom 2Bedroom 3KitchenBathroomWCTEST
1​
1​
1​
1​
1​
1​
1​
0​
0​
16/01/2023​
16/01/2023​
17/01/2023​
17/01/2023​
18/01/2023​
18/01/2023​
2​
1​
1​
1​
0​
0​
1​
1​
0​
16/01/2023​
16/01/2023​
17/01/2023​
17/01/2023​
18/01/2023​
3​
1​
0​
0​
0​
0​
1​
1​
0​
19/01/2023​
19/01/2023​
20/01/2023​
4​
1​
1​
1​
1​
0​
1​
1​
1​
18/01/2023​
18/01/2023​
19/01/2023​
19/01/2023​
20/01/2023​
20/01/2023​
23/01/2023​
19/01/2023​


Have been playing around with formula below and similar without luck yet.

=IF(F5=0,"", IF(AND(F5=1,WEEKDAY(N5+0.5)=7),N5+2.5,N5+0.5))
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,868
Messages
6,127,408
Members
449,382
Latest member
DonnaRisso

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