Question : Number of days between two dates

How to get number of days bet. two dates minus Sundays/Holidays?

Answer : Number of days between two dates

Hi matley,
If you have the Analysis ToolPak installed and enabled, you can use the array formula:
=NETWORKDAYS(A1,A2,Holidays)+SUM(IF(WEEKDAY(A1-1+ROW(INDIRECT("1:"&TRUNC(A2-A1)+1)))=7,1,0))
Array formula, so hold the CTRL + Shift keys down while hitting Enter. Excel will then add curly braces {} surrounding the equation. This formula assumes that A1 is the start date, A2 is the ending date and Holidays is a named range that lists the dates of all holidays.

To enable Network days, open the Tools...Add-ins menu item and check the checkbox for Analysis ToolPak. If you don't see Analysis ToolPak listed, then you will need to get out your office CD-ROM and use the Add/Remove software control panel to add the Analysis ToolPak add-in.

Cheers!

Brad
Random Solutions  
 
programming4us programming4us