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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,111
Messages
5,835,450
Members
430,357
Latest member
Greshapa

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
Top