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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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