Auto Populating Dates but Skipping the Weekend

jamian0607

New Member
Joined
Jan 17, 2014
Messages
2
I need to make a schedule for testing where I check the samples every 3 days but if that date hits on a weekend I want it to role over to the monday if it hits on a Sunday and Friday if it hits on a Saturday. In other words wait an extra day if it hits on a Sunday and check the sample a day early if it would normally be on a Saturday.

I have been playing around with the WORKDAY command and some of the other date functions but I can't figure this one out.

Any help would be appreciated!
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Would you want the next day after that to revert to the pattern or just be three days after the previous? For example if your start date is a Thursday then StartDate+3 will give you Sunday so the formula needs to return Monday. What date do you want next, just Monday+3 or StartDate+6?
 
Upvote 0
OK, if first date is in A2 just put this formula in the next cell and copy down or across as required

=A2+3+CHOOSE(WEEKDAY(A2+3),1,0,0,0,0,0,-1)

....but as soon as you hit a Monday or Thursday you'll get in a repeating pattern of Mon/Thurs/Mon/Thurs etc.......
 
Upvote 0

Forum statistics

Threads
1,214,797
Messages
6,121,629
Members
449,041
Latest member
Postman24

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