Adding Days to a Date excluding weekends

srsteiner

New Member
Joined
Mar 15, 2004
Messages
25
Looking for a way to add days to a date and exclude weekends in the process.

Ex.

If my date is Mar. 16. and I need to add 5 days to it. The result I'm looking for is Mar. 23 (not adding the Mar. 20 and Mar 21 into the total), not Mar. 21.

Want to just add "business" or "working day" to the date.

Thanks!!
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Use the WORKDAY formula.

You need the Analysis pak for it to be available.

=WORKDAY("3/15/2004",5)

So thats last Monday, plus the five working days from the date stated, and then the result will be next monday 3/22

The cell has to be formatted in Days etc...

(y)
 
Upvote 0
or something like this...
Book3
ABCD
173/16/20043
183/22/20045
Sheet2


notice in the workday formula the "-1", depends wether you want to count tht day or how you interpret it.

HTH

nice one santeria!
 
Upvote 0
The way you added the -1 works better.
Makes use of the function WORKDAY, and adds up the working days including the start date, makes more sense.

Ta

(y)
 
Upvote 0
I will add a little twist to your scenario by assuming that the 18th and the 22nd are public holidays. Ignoring the weekend and the public holidays, adding 5 days to 16 March 04 will result in 25 March 04.
Business Days from a start date.xls
ABCDEFGHIJK
1
2BusinessDaysHolidays
316-Mar-04Tue525-Mar-0418-Mar-04Thu
4117-Mar-04Wed22-Mar-04Mon
518-Mar-04Thu
6219-Mar-04Fri=WORKDAY(B3,E3,J3:J4)
720-Mar-04Sat
821-Mar-04Sun
922-Mar-04Mon
10323-Mar-04Tue
11424-Mar-04Wed
12525-Mar-04Thu
1326-Mar-04Fri
1427-Mar-04Sat
1528-Mar-04Sun
1629-Mar-04Mon
Sheet1


Regards,

Mike
 
Upvote 0
santeria said:
The way you added the -1 works better.
Makes use of the function WORKDAY, and adds up the working days including the start date, makes more sense...

What if the date to start with is not a workday like:

3/20/2004

which is a saturday?

Leaving the holidays out for the moment...

=WORKDAY(A1,5)-1

would give:

3/25/2004

while

=WORKDAY(A1,5-(NETWORKDAYS(A1,WORKDAY(A1,0))>0))

gives:

3/26/2004
 
Upvote 0
You have a good point, but it also where NETWORKDAYS comes into it's own.

Strictly speaking, the WORKDAY formula works as a strightforward calculation.
But to fully utilise the excel formulas, you need a Table of Holidays, use Networkdays as the intermediary calc form, unless you choose to have WORKDAY utilising the three argument form of the function that draws it's data from a Holiday table, that way the basic handy form of WORKDAY actually goes one better than using the additional step.

So, WORKDAY functions properly with the Holiday database, the minus one, and the data-base for holiday calcs.


(y)
 
Upvote 0
Fair Point Aladin...
And What happens if the person observes Friday as a holiday ??


(y)
 
Upvote 0
santeria said:
Fair Point Aladin...
And What happens if the person observes Friday as a holiday ??


(y)

I said: "leaving out the holidays for the moment". They can be added to the formula. The point I was trying to make is that -1 can be risky with a (for whatever reason) non-working day as a start date.
 
Upvote 0

Forum statistics

Threads
1,215,734
Messages
6,126,545
Members
449,316
Latest member
sravya

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