Add calendar days to a date, but the final date must be a labor day

hcova

New Member
Joined
Jul 29, 2010
Messages
19
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Dear friends:
I have a "base date" and I need to add calendar numbers of days to get a "final date".
The only condition I need is the "final date" must be the next labor day.
For example if I add 22 calendar days to today friday 05.21.2021 I will get the saturday 06.12.2021.
In this example I would like to get the next labor day. I mean, the monday 06.14.2021
(If this monday is holiday, I would like to get tuesday 06.15.2021)

Is there any excel function to do this, or I need to write a complex formula or a vba code?

Regards
HC
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

You can use the WORKDAY.INTL function for that. How to use the Excel WORKDAY.INTL function | Exceljet
 
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

You can use the WORKDAY.INTL function for that. How to use the Excel WORKDAY.INTL function | Exceljet
Hi there but WORKDAY.INTL doesn't work because it lets you customize which days of the week are considered weekends during all the period of days.
However with this formula you can not set special conditions at the "final date".
Again, if you add 22 calendar days to 05.21.2021 I will get the saturday 06.12.2021.
I need to add these 22 calendar days and get the next labor day: monday 06.14.2021
Best regards
Hernan
 
Upvote 0
Hi there but WORKDAY.INTL doesn't work because it lets you customize which days of the week are considered weekends during all the period of days.
However with this formula you can not set special conditions at the "final date".
Again, if you add 22 calendar days to 05.21.2021 I will get the saturday 06.12.2021.
I need to add these 22 calendar days and get the next labor day: monday 06.14.2021
Best regards
Hernan
I found the solution:
=WORKDAY(Base date+Calendar Days-1;1) you will always get a labor date as Final Date. You can improve it including holiday days!
Regards
Hernan
 
Upvote 0
Anyway, credits are for Barry Houdini, MrExcel MVP
 
Upvote 0

Forum statistics

Threads
1,214,650
Messages
6,120,736
Members
448,988
Latest member
BB_Unlv

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