Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default 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.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default 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.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default 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)

....


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Round dates to weekdays Nan Excel Worksheet Functions 8 November 11th 09 01:53 AM
Difference (weekdays) between two dates ant1983 Excel Worksheet Functions 5 October 29th 07 08:37 PM
dates for weekdays in non-contiguous cells spence Excel Worksheet Functions 1 June 10th 07 07:39 PM
How do i count number of weekdays between two dates? Sanjay Shah Excel Worksheet Functions 1 April 4th 05 04:40 PM
Fill dates with weekdays/workdays only DJ Bjorklund Excel Worksheet Functions 1 January 18th 05 04:48 PM


All times are GMT +1. The time now is 02:35 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"