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
 

Some videos you may like

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

absquatulation

New Member
Joined
Nov 11, 2005
Messages
49
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.
 

MichaelRo

Well-known Member
Joined
Jun 7, 2004
Messages
549
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.. :(
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
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...
 

absquatulation

New Member
Joined
Nov 11, 2005
Messages
49
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,029
Messages
5,569,747
Members
412,289
Latest member
Kingchaos64
Top