Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Counting Days of Week

I am currently trying to count how many sundays and saturdays there are
inbetween two given dates. is there a function that could help me with this
or easy way of doing it.
For example:
Input - Beginning Date - Sun 5/3/09
Input - End Date - Sun 5/31/09
Output - # of Sundays - 5
Output - # of Saturdays - 4

I know there is the NETWORKDAYS function and i could just subtract Total
days from Net Work Days to get total Weekend days. but if i want to break it
up even more is there a way i could do that.

--
Justin
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Counting Days of Week

If you always have Sundays as your start and end dates, you could do
this:

=INT((B2-B1)/7)+1

where B2 is the End Date. Just leave the +1 off for the number of
Saturdays.

Hope this helps.

Pete


On Jan 20, 11:47*pm, Soccer boy <Soccer
wrote:
I am currently trying to count how many sundays and saturdays there are
inbetween two given dates. *is there a function that could help me with this
or easy way of doing it.
For example:
Input - Beginning Date - *Sun 5/3/09
Input - End Date - Sun 5/31/09
Output - # of Sundays - 5
Output - # of Saturdays - 4

I know there is the NETWORKDAYS function and i could just subtract Total
days from Net Work Days to get total Weekend days. *but if i want to break it
up even more is there a way i could do that.

--
Justin


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
Counting Days of Week in Date Ranges nospaminlich Excel Worksheet Functions 1 April 14th 08 03:41 PM
Re Change 5 week days to 7 days in this formula pano Excel Worksheet Functions 7 February 1st 07 04:20 PM
COUNTIF by days of week Raza Excel Worksheet Functions 7 September 19th 06 10:25 PM
7 days of the week James C Excel Discussion (Misc queries) 8 October 10th 05 04:14 AM
Days of the week. Johan Bornman Excel Worksheet Functions 1 November 10th 04 05:25 PM


All times are GMT +1. The time now is 09:32 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"