add dates

Likeexcel

Active Member
Joined
Sep 2, 2009
Messages
308
Hello:
Not sure if there is a formula that in any given calendar dates it know would add weekend days and holidays.

For instance,if we ship something on 9/28 wednesday and it takes 4 business days to get to the customer, so it gets to the customer on tuesday 10/4.
However if i added 4 days to 2011-09-28, it gives me 2011-10-02(Sunday) because it's including weekend days. i need a formula that says on any given date plus the 4 business days to ship then give me the date, but if that date falls on a weekend or holiday dates then add the extra weekend dates or holidays, so the return date is on a working date.

not sure if this is possible, may need to have extra table for the calendar dates?

thank you in advance.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Try

=WORKDAY(A1,4,E1:E20)

Where A1 is your start date
4 is number of working days to add
E1:E20 is an OPTIONAL range containing holidays to be excluded as well.

This requires the Analysis toolpack from Tools - Addins


Hope that helps.
 
Upvote 0
Like this? I don't have a list of US holidays, so I've only entered 2 - you'll need to populate the rest.

Excel Workbook
ABCDEFG
1Ship dateDelivery date
228-Sep04-OctNew Yrs Day01-Jan
3Xmas Day25-Dec
Sheet1
 
Upvote 0
Thank you both.

Just one more question, is there an easy way to popular all the weekend dates for the year?
 
Upvote 0
Try putting the first weekend date of the year in A2 and then this formula in A3 copied down

=IF(WEEKDAY(A2)=1,6,1)+A2
 
Upvote 0
Thank you.

also just one more if cell A1 has the 2011-08-28 as the format (or any dates for that matter), and B1 has let say 2011-09-01 as the format just as an example. what is the formula shows if A1 and B1 are not the same month then "", otherwise "ok"?

thank you again.
 
Upvote 0
Hello Neil ....I suppose it depends on your definition of "same month" - assuming that it must be the exact same calendar month, i.e. the same month in the same year - then my method would do that, comparing just the month, of course, won't ensure that the months are in the same year....
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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