Formula to calculate dates

Schoolsec

New Member
Joined
Mar 7, 2024
Messages
3
Office Version
  1. 2019
  2. 2016
  3. 2013
  4. 2011
  5. 2010
Platform
  1. Windows
Hello,

I work for a school district.
I would like to calculate 30 days out from a specific date and exclude weekends and school holidays or random school days off.

Example:
3/1/24 plus 30 days, minus weekends and spring break (March 25-29) would be 4/19/24.
3/4/24 plus 30 days, minus weekends and spring break (March 25-29) would be 4/22/24.
5/1/24 plus 30 days, minus weekends and Memorial Day (May 27) would be 6/13/24.

Ideally, I would need to be able to plug in all school days off throughout the year and weekends and produce an entire spreadsheet.

Thank you for anyone's help.
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Welcome to the MrExcel forum!

Try:
Book3
ABCDEFG
1StartAddEndHolidays
23/1/2024304/19/2024Spring Break3/25/2024
33/4/2024304/22/2024Spring Break3/26/2024
45/1/2024306/13/2024Spring Break3/27/2024
5Spring Break3/28/2024
6Spring Break3/29/2024
7Memorial Day5/27/2024
Sheet4
Cell Formulas
RangeFormula
C2:C4C2=WORKDAY(A2,B2,$G$2:$G$7)
 
Upvote 0
Solution
Hi, Thanks for the quick response.
This is exactly what I needed. O my I am so excited.
Thank you Thank you Thank you!
 
Upvote 0

Attachments

  • Capture.JPG
    Capture.JPG
    93 KB · Views: 5
Upvote 0
Hi Eric,

Do you know of a way to exclude weekends in my column A?
Hi,

You can use the Fill series which is in the home tab. (see pic 1).
When you open the Fill series dialogue box, click the column, on the right click workdays, and as an end day write down your end day. (see pic 2)
In picture 3 you can see March 2024 workdays.

g
 

Attachments

  • pic 1.png
    pic 1.png
    105.8 KB · Views: 2
  • pic 2.png
    pic 2.png
    95.9 KB · Views: 1
  • pic 3.png
    pic 3.png
    85.5 KB · Views: 1
Upvote 0

Forum statistics

Threads
1,215,561
Messages
6,125,533
Members
449,236
Latest member
Afua

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