Exclude Sunday while adding days to a given date

msantosh1220

New Member
Joined
Jul 3, 2018
Messages
5
Hey Guys,

Can one help me with a formula that adds any number of days to a given date, while adds the number of days all the sundays should be excluded while generating the new date.

Example:
1. If the Given date is 12 Jul 18 I wana add 5 days to 12jul18 excluding sundays result date should be 18Jul18 as there is one Sundays in between 12 and 18jul18 which was excluded from d counts.
2. If the Given date is 9jul18 I wana add 5 days to 9jul18 result days should be 14jul18 their is no sunday in between 9 to 14jul18.


Please note I have data in which Given dates n days to be added are not fixed thy keep on changing.

Looking 4 answer tat could help me in getting d right that will exclude the Sundays in d counts



Thanks and regards

Msantosh1220
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hey Guys,

Can one help me with a formula that adds any number of days to a given date, while adds the number of days all the sundays should be excluded while generating the new date.

Example:
1. If the Given date is 12 Jul 18 I wana add 5 days to 12jul18 excluding sundays result date should be 18Jul18 as there is one Sundays in between 12 and 18jul18 which was excluded from d counts.
2. If the Given date is 9jul18 I wana add 5 days to 9jul18 result days should be 14jul18 their is no sunday in between 9 to 14jul18.


Please note I have data in which Given dates n days to be added are not fixed thy keep on changing.

Looking 4 answer tat could help me in getting d right that will exclude the Sundays in d counts



Thanks and regards

Msantosh1220
Have a nice day ;)
=$A1+INT((WEEKDAY($A1-1)+($A1+5)-$A1)/7)
 
Upvote 0
Here is another formula for you to try...

=WORKDAY.INTL(A1,5,11)

The red 5 is the number of days to add (the 11 is the function's code value for Sunday only for weekends).
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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