Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Class316
 
Posts: n/a
Default Need number of Saturdays and number of Sundays between 2 dates


In excel I use the formula =networkdays(A1,A2) [where A1 and A2 are
dates] to get the number of weekdays between 2 dates. Is there a
formula to get the number of Saturdays and number of Sundays?

So basically there are 2 dates, I need the number of Saturdays between
these dates, and another formula for number of Sundays.

Would appreciate any help. Thanks.


--
Class316
------------------------------------------------------------------------
Class316's Profile: http://www.excelforum.com/member.php...o&userid=24163
View this thread: http://www.excelforum.com/showthread...hreadid=377935

  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

For Saturdays, try:

=SUMPRODUCT(--(WEEKDAY(ROW(INDIRECT(A1&":"&B1)))=7))

For Sundays, change the 7 to a 1.

HTH
Jason
Atlanta, GA

"Class316" wrote:


In excel I use the formula =networkdays(A1,A2) [where A1 and A2 are
dates] to get the number of weekdays between 2 dates. Is there a
formula to get the number of Saturdays and number of Sundays?

So basically there are 2 dates, I need the number of Saturdays between
these dates, and another formula for number of Sundays.

Would appreciate any help. Thanks.


--
Class316
------------------------------------------------------------------------
Class316's Profile: http://www.excelforum.com/member.php...o&userid=24163
View this thread: http://www.excelforum.com/showthread...hreadid=377935


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
Count number of days in given month? Bryan Excel Worksheet Functions 10 February 3rd 05 12:44 AM


All times are GMT +1. The time now is 10:07 PM.

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

About Us

"It's about Microsoft Excel"