COUNTING WORKING DAYS IN A WEEK

hakim_tanzil

Board Regular
Joined
May 10, 2012
Messages
56
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi there,

I've been trying to figure out how to count a working day in a week minus Sunday & Holiday

Our working days in a week start from every Friday - Thursday, and we usually determine our week by using formula =WEEKNUM(TODAY();15)

Now I'm trying to count how many working days in a certain week from the weeknum formula result

Appreciate if someone could help me on this
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
It's hard to answer your question. What is the range of dates you're working wtih? In another word give us a start date and end date.
 
Upvote 0
See if the formula in Column B gives you what you need.
The formula needs a year and will likely need some adjustment for the 1st and last week of the year.

20230311 WeekNum calc Week Dates hakim_tanzil.xlsx
ABCDEFGH
1Year2023
2Visual CheckVisual CheckHolidays
3Week NumberWorking DayWeek StartWeek EndDates
425Fri 06-Jan-23Thu 12-Jan-23Wed 18-Jan-23<-- Test Value Only
534Fri 13-Jan-23Thu 19-Jan-23
645Fri 20-Jan-23Thu 26-Jan-23
Summarised Calc
Cell Formulas
RangeFormula
B4:B6B4=NETWORKDAYS(DATE($B$1,1,1)+(7*A4)-WEEKDAY(DATE($B$1,1,1),15)-6,DATE($B$1,1,1)+(7*A4)-WEEKDAY(DATE($B$1,1,1),15),$F$4:$F$8)
C4:C6C4=DATE($B$1,1,1)+(7*A4)-WEEKDAY(DATE($B$1,1,1),15)-6
D4:D6D4=DATE($B$1,1,1)+(7*A4)-WEEKDAY(DATE($B$1,1,1),15)
 
Upvote 0
See if the formula in Column B gives you what you need.
The formula needs a year and will likely need some adjustment for the 1st and last week of the year.

20230311 WeekNum calc Week Dates hakim_tanzil.xlsx
ABCDEFGH
1Year2023
2Visual CheckVisual CheckHolidays
3Week NumberWorking DayWeek StartWeek EndDates
425Fri 06-Jan-23Thu 12-Jan-23Wed 18-Jan-23<-- Test Value Only
534Fri 13-Jan-23Thu 19-Jan-23
645Fri 20-Jan-23Thu 26-Jan-23
Summarised Calc
Cell Formulas
RangeFormula
B4:B6B4=NETWORKDAYS(DATE($B$1,1,1)+(7*A4)-WEEKDAY(DATE($B$1,1,1),15)-6,DATE($B$1,1,1)+(7*A4)-WEEKDAY(DATE($B$1,1,1),15),$F$4:$F$8)
C4:C6C4=DATE($B$1,1,1)+(7*A4)-WEEKDAY(DATE($B$1,1,1),15)-6
D4:D6D4=DATE($B$1,1,1)+(7*A4)-WEEKDAY(DATE($B$1,1,1),15)
Thanks Alex Blakenburg for your reply.

Using the NETWORKDAYS formula, how do I determine the start date & end date just by using the week number? Let's say I want to determine the working days on week #15, so the start & end date should be something like converting the weeknum into the start & end date

The date range is from Friday 17th of March 2023 to 23rd of March 2023, and a public holiday happen to be on 22nd of March 2023. The result is supposed to be 5 working days
 
Upvote 0
This seems like going back the logic, converting the weeknum to identify the start & end date
 
Upvote 0
Book1
ABCD
1HolidaysWeek #Working days
207 January 2023125
322 March 2023
4
5
Sheet1
Cell Formulas
RangeFormula
D2D2=NETWORKDAYS.INTL(DATE(YEAR(TODAY()),1,1)-CHOOSE(WEEKDAY(DATE(YEAR(TODAY()),1,1)),2,3,4,5,6,0,1)+($C$2-1)*7,DATE(YEAR(TODAY()),1,1)-CHOOSE(WEEKDAY(DATE(YEAR(TODAY()),1,1)),2,3,4,5,6,0,1)+($C$2-1)*7+6,11,$A$2:$A$5)
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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