Round Date to Nearest Workday

nationwide

New Member
Joined
Jul 15, 2010
Messages
2
Good day! I'm attempting to write a formula that rounds a given date it to the nearest workday. For example, If I have the dates January 23, 2010 (which is a Saturday) and January 24 ,2010 (which is a Sunday) I want the formula to return January 25, 2010 (Monday). However, if the date is January 22, 2010 (a Friday), I want the forumula to return that date since it's a workday.

Any help would be much appreciated!
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi & Welcome,


Try the below with the date in question being in A1, feel free to copy down

=IF(WEEKDAY(A1)=7,A1+2,IF(WEEKDAY(A1)=1,A1+1,A1))
 
Upvote 0
I am using the suggested formula but need to establish the closest working day to cell A1 minus 30 days. I have tried the following but its not working.
=IF(WEEKDAY(A1)-30=7,A1+2,IF(WEEKDAY(A1)-30=1,D4+1,A1-30))

Any help is much appreciated.
 
Upvote 0
Hello gico1972,

Did you get an answer for this?

You can use an amended version of my suggestion with WORKDAY, i.e.

=WORKDAY(A1-31,1)

That will give you A1 minus 30 days .......unless that date happens to be a weekend in which case you'll get the following Monday.

You can also add a holiday range if required
 
Upvote 0

Forum statistics

Threads
1,215,147
Messages
6,123,296
Members
449,095
Latest member
Chestertim

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