Is it possible to calculate the Number of work days that are left in a year?

FrancisM

Board Regular
Joined
Apr 12, 2016
Messages
139
This is similar, but slightly different from the last post. I believed that a new post would be appropriate.
Cell range D5:Q30 is the range that the user sees & uses to enter leave. Cell range AI5:AV30 is what the system uses to conditionally format Cell range D5:Q30 when an individual cell is less than today. <today(). <today().="" <today().
Located in various cell locations between D5:Q30 is the letter "H" (Federal Holidays), the locations of "H" varies every year. I am trying to calculate the number of work days in the year. I would like to deduct both weekends & Federal Holidays from the formula below.

I currently apply the formula =COUNTIF(AI5:AV30,">"&TODAY()) to Cell range AI5:AV30, & returns the number of days left in the current pay year. </today().>
 
Last edited:

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Is it possible to calculate the Number of work days that are left in a year?

Review the options for NetWorkdays.Intl


Excel 2010
ABC
51-Jan-1831-Dec-18259
613-Nov-1831-Dec-1833
7
1e
Cell Formulas
RangeFormula
A6=TODAY()
C5=NETWORKDAYS.INTL(A5,B5,1,rHolidays)
C6=NETWORKDAYS.INTL(A6,B6,1,rHolidays)
Named Ranges
NameRefers ToCells
Holidays='1e'!$K$2:$K$13
rHolidays='1e'!$K$2:$K$14
 
Last edited:
Upvote 0
Dave Patton Thanks for introducing me to NETWORK.INTL. I modified my earlier formula to include the Federal Holidays. Your formula required the user to input some data. Here is my modified formula: =COUNTIF(AI5:AV30,">"&TODAY())-10. The 10 accounts for the Holidays. There is no input required from the user, also some of the Holidays float.
Now I need to modify the formula to account for the weekends.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
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