Workday of the month

nkhanna

New Member
Joined
Aug 12, 2015
Messages
3
Hi,

What will be the formula, If I need to have the current workday of the month. This means that if today is the 8th working day of August, then the result in the cell should be 8.

Similarly, I would need to calculate working days in a month, quarter, Quarter to date , year to date and full year :)


Thanks
 
Last edited:

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Try
Code:
=NETWORKDAYS(TODAY()-DAY(TODAY())+1,TODAY())

or, with any holidays taken into account
Code:
=NETWORKDAYS(TODAY()-DAY(TODAY())+1,TODAY(),[holidays])
where [holidays] is an optional list of holidays.

Edit: Similarly, you can calculate working days in a month, quarter, Quarter to date , year to date and full year ;)
 
Upvote 0
Great, this worked for the first query.

Are we aware of the formulas to calculate working days in a month, quarter, Quarter to date , year to date and full year?
 
Upvote 0
Try these (holidays not included):

Current workday of month
Code:
=NETWORKDAYS(DATE(YEAR(TODAY()),MONTH(TODAY()),1),TODAY())

Workdays in current month
Code:
=NETWORKDAYS(DATE(YEAR(TODAY()),MONTH(TODAY()),1),EOMONTH(TODAY(),0))

Workdays quarter to date
Code:
=NETWORKDAYS(CHOOSE(INT((MONTH(TODAY())+2)/3),DATE(YEAR(TODAY()),1,1),DATE(YEAR(TODAY()),4,1),DATE(YEAR(TODAY()),7,1),DATE(YEAR(TODAY()),10,1)),TODAY())

Workdays in current quarter
Code:
=NETWORKDAYS(CHOOSE(INT((MONTH(TODAY())+2)/3),DATE(YEAR(TODAY()),1,1),DATE(YEAR(TODAY()),4,1),DATE(YEAR(TODAY()),7,1),DATE(YEAR(TODAY()),10,1)),CHOOSE(INT((MONTH(TODAY())+2)/3),DATE(YEAR(TODAY()),3,31),DATE(YEAR(TODAY()),6,30),DATE(YEAR(TODAY()),9,30),DATE(YEAR(TODAY()),12,31)))

Workdays YTD
=NETWORKDAYS(DATE(YEAR(TODAY()),1,1),TODAY())

Workdays in current year
Code:
=NETWORKDAYS(DATE(YEAR(TODAY()),1,1),DATE(YEAR(TODAY()),12,31))
 
Upvote 0
Yes we are aware. :rolleyes:
Let A1 be the reference date and B1 the start of the quarter (Jan 1, Apr 1, Jul 1, Oct 1), calculated as
Code:
=DATE(YEAR(A1),1+3*INT((MONTH(A1)-1)/3),1)

Without holidays taken into account.

Month:
Code:
=NETWORKDAYS(A1-DAY(A1)+1,EOMONTH(A1,0))

Quarter:
Code:
=NETWORKDAYS(B1,EOMONTH(B1,2))

Quarter to date:
Code:
=NETWORKDAYS(B1,A1)

Year to date:
Code:
=NETWORKDAYS(DATE(YEAR(A1),1,1),A1)

Full year:
Code:
=NETWORKDAYS(DATE(YEAR(A1),1,1),DATE(YEAR(A1),12,31))
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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