Formula to calculate dates

Schoolsec

New Member
Joined
Mar 7, 2024
Messages
4
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

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
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: 11
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: 6
  • pic 2.png
    pic 2.png
    95.9 KB · Views: 6
  • pic 3.png
    pic 3.png
    85.5 KB · Views: 7
Upvote 0
ok, I'm back at it with additional help needed.

I can't get my formula to copy down the column. It wants to move down the E column. I need it to stay E2:E29, Hoping to not have to do this manually.

Hopefully this make sense.
Thanks!


1719512868744.png


1719512916381.png
 
Upvote 0
If I understand your request, in the first row of the formula change the E2:29 to $E2:$E$29. That will "lock" the reference in place. Then you can fill down and the range will stay the same.
 
Upvote 0

Forum statistics

Threads
1,223,229
Messages
6,170,881
Members
452,364
Latest member
springate

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