calculate working days to end of the month

absquatulation

New Member
Joined
Nov 11, 2005
Messages
49
Hi Guys,


OK, so I can calculate the number of days to the end of the month

=(DATE(YEAR(ref),MONTH(ref)+1,0)-(ref1+(DATE(YEAR(ref),MONTH(ref),0))))

but, how do I calculate the number of "working days" to the end of the month??

any ideas, 'cos it's floored me.

Thanks,

Simon
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
As usual working for a large organisation, the IT (Idiot Team) department actively discourage using any add-ins or bolt on to any software.

We don't have it and hell will freeze over before they allow it onto "their" system.
 
Upvote 0
As far as I was aware the Analysis ToolPack is part of excel anyway...?

For it not to be included I would suggest your IT department did a custom or minimal install of Excel.. :(
 
Upvote 0
To give you the number of working days from a date in A1 to the end of the month (including A1 if a weekday) I was going to suggest

=NETWORKDAYS(A1,EOMONTH(A1,0))

as per Michael's suggestion but if you can't use Analysis ToolPak you could try

=SUMPRODUCT(--(WEEKDAY(A1+ROW(1:31)-1,2)<6),--(MONTH(A1+ROW(1:31)-1)=MONTH(A1)))

..of course NETWORDAYS has the advantage in that you can also exclude holidays if you wish...
 
Upvote 0
MikaelRo

I agree, but IT work on the theory of "they know best", rather than the user might just know what they want.

I have no access to add-ins, or even VBA Help.



barry houdini

Thanks Barry, I'll try it.
 
Upvote 0

Forum statistics

Threads
1,214,642
Messages
6,120,700
Members
448,979
Latest member
DET4492

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