Workday not including Saturdays

jeff07kp

New Member
Joined
Jun 17, 2008
Messages
30
Hi guys,

Well this is my problem. I work scheduling trucks and I have the following problem.

I need to calculate arrival times for merchandise. So if the truck arrives lets say NOV 21st in three different cells would calculate NOV20, nov19 and nov 18.

The problem now is that I can not count Sundays, nor holidays. How can I apply a formula where it would automatically Affect the other cells.

I have something like this

=WORKDAY(AC11,-1,$H$1:$H$10)

The problem with the formula above is that it deducts saturday. Saturday is a working day for me too. How can I correct this?

to make it easier I utilized three cells to calculate then, i use another formula to extract the info such as

=TEXT(AH20,"ddd")

any ideas anyone?

<!-- / icon and title --> <!-- message -->

<!-- / message --> <!-- edit note -->
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try this array formula

=H1-SMALL(IF((WEEKDAY(H1-(ROW(INDIRECT("1:10"))))={2,3,4,5,6,7})*
ISNA(MATCH(H1-(ROW(INDIRECT("1:10"))),holidays,0)),ROW(INDIRECT("1:10"))),1)
 
Upvote 0
If you only want to go back 1 day at a time, e.g. to get the previous workday from A2 you could perhaps use this formula which doesn't need to be array entered, assuming start date in A2

=A2-MIN(IF(WEEKDAY(A2-{1,2,3,4,5})<>1,IF(ISNA(MATCH(A2-{1,2,3,4,5},$H$1:$H$10,0)),{1,2,3,4,5})))

put that formula in A3 and copy down and you get each successive workday, going backwards, assuming you never have as many as 5 non-workdays in succession
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

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