![]() |
Weekdays between two dates in Excel?
Two solutions found online, two problems.
1) =NETWORKDAYS function should do the job, but I keep winding up with a #NAME? error. (Using Excel 2003) 2) Formula suggestion, where A2 contains the earlier date and B2 contains the later date: =MAX(WEEKDAY(B2,2)-WEEKDAY(A2,2),0)+1+INT((B2-A2)/7)*5 gets hosed when one or both days are Saturday or Sunday http://www.ozgrid.com/forum/showthread.php?t=65032 An explanation for 1), modification of 2) or other suggestion is appreciated. TIA. |
Weekdays between two dates in Excel?
--Using =NETWORKDAYS(). Incase this formula returns an error you need to
install ATP. To install; from menu ToolsAddIns check 'Analysis ToolPak' and hit OK. =NETWORKDAYS(A1,B1) --With startdate in A1 and end date in B1 =SUMPRODUCT(INT((B1-A1+WEEKDAY(A1-{2,3,4,5,6}))/7)) If this post helps click Yes --------------- Jacob Skaria "Eric" wrote: Two solutions found online, two problems. 1) =NETWORKDAYS function should do the job, but I keep winding up with a #NAME? error. (Using Excel 2003) 2) Formula suggestion, where A2 contains the earlier date and B2 contains the later date: =MAX(WEEKDAY(B2,2)-WEEKDAY(A2,2),0)+1+INT((B2-A2)/7)*5 gets hosed when one or both days are Saturday or Sunday http://www.ozgrid.com/forum/showthread.php?t=65032 An explanation for 1), modification of 2) or other suggestion is appreciated. TIA. |
Weekdays between two dates in Excel?
Please read the Excel help entry for NETWORKDAYS.
-- David Biddulph "Eric" wrote in message ... Two solutions found online, two problems. 1) =NETWORKDAYS function should do the job, but I keep winding up with a #NAME? error. (Using Excel 2003) .... |
All times are GMT +1. The time now is 06:32 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com