Current working day of the month

thedeadzeds

Active Member
Joined
Aug 16, 2011
Messages
442
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

Is there a way to populate a cell with the current working day of the month? Working day would exclude all weekends and public holidays. I have a list of public holidays in worksheet 'calendar' to identify these. For example, today (27/03/2023) would be working day 19
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
How about
Excel Formula:
=NETWORKDAYS(TODAY()-DAY(TODAY())+1,TODAY(),Calendar!A2:A100)
 
Upvote 0
Solution
How about
Excel Formula:
=NETWORKDAYS(TODAY()-DAY(TODAY())+1,TODAY(),Calendar!A2:A100)

Thanks Fluff, I'm getting a #REF error. My formula below:

Excel Formula:
=NETWORKDAYS(TODAY()-Day(TODAY())+1,TODAY(),Lookups!D2:D100)

Public holidays are in 'lookups' column D

Public Holidays
07/04/2023​
10/04/2023​
01/05/2023​
08/05/2023​
29/05/2023​
28/08/2023​
25/12/2023​
26/12/2023​
 
Upvote 0
Check that you have spelt the sheet name correctly.
 
Upvote 0
Originally you said the holidays were listed on a sheet called calendar, but you are referring to a sheet called lookup.
 
Upvote 0
Originally you said the holidays were listed on a sheet called calendar, but you are referring to a sheet called lookup.
yes, sorry I just changed the name of the calendar sheet to Lookups. If I change the name the of the Lookups sheet to Calendar and enter your original formula, I still get the #REF error? Sorry
 
Upvote 0
In that case make sure that the sheet name does not have any leading/trailing spaces.
 
Upvote 0
In that case make sure that the sheet name does not have any leading/trailing spaces.
So this is really strange. If I recreate this in a new workbook your formula works great but not in my current one. Thanks for your help I'll try and figure out what is going on
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,984
Members
449,201
Latest member
Lunzwe73

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