Formula to Calculate a due date with excluding dates

Sarina28

New Member
Joined
Sep 12, 2023
Messages
3
Office Version
  1. 365
Platform
  1. MacOS
Hello,

I'm trying to build a tool to support teachers with due dates.
It is possible to make a formula that would exclude summer.
So if the target date is 9/21/24, I would like the formula to produce a date 60 days before excluding June 5, 2024 to August 19, 2024.
I have found information about excluding weekends and holidays but could not find information about a specific date range.

Thank you for your assistance.
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Hi & welcome to MrExcel.
How about
Excel Formula:
=WORKDAY(A2,-60,SEQUENCE(76,,DATE(2024,6,5)))
 
Upvote 0
Thank you so much for your help.
Unfortunately, that did not work the output was 45398

Also, I do not want to exclude weekends or holidays- just the summer- June 5, 2024 to August 19, 2024
 
Upvote 0
Unfortunately, that did not work the output was 45398
You need to format the cell as a date.
If you want to include weekends then use
Excel Formula:
=WORKDAY.INTL(A2,-60,"0000000",SEQUENCE(76,,DATE(2024,6,5)))
 
Upvote 0
Solution
Oh my goodness, I am an idiot. I am so sorry.
This totally worked, thank you, thank you, thank you!!!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,136
Members
453,021
Latest member
Justyna P

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