Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 137
Default Number of Specific Day within Dates

Hi,

Is there a way to find how many Day (eg. wednesdays) within a a date
range?

Like how many Wednesdays (any given Day) falling between June 1, 2009
Till June 21, 2009

Thanks,

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 913
Default Number of Specific Day within Dates

On Mon, 29 Jun 2009 03:44:01 -0700 (PDT), Abdul
wrote:

Hi,

Is there a way to find how many Day (eg. wednesdays) within a a date
range?

Like how many Wednesdays (any given Day) falling between June 1, 2009
Till June 21, 2009

Thanks,



Put the first date in cell A1, the last date in cell A2 and the code
for the weekday, i.e. 4 for Wednesday, in cell A3.
The try the following formula:

=SUMPRODUCT(- -(WEEKDAY(A1-1+ROW(INDIRECT("A1:A"&(A2-A1+1))))=A3))

Hope this helps / Lars-Åke
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
Number of Specific Day within Dates zxcv[_2_] Excel Worksheet Functions 2 July 3rd 09 09:59 PM
Number of Specific Day within Dates Shane Devenshire[_2_] Excel Worksheet Functions 0 June 30th 09 07:59 PM
Number of Specific Day within Dates Teethless mama Excel Worksheet Functions 0 June 30th 09 07:30 PM
Number of Specific Day within Dates Alan McQ via OfficeKB.com Excel Worksheet Functions 0 June 30th 09 07:19 PM
Number of Specific Day within Dates Abdul[_2_] Excel Worksheet Functions 0 June 29th 09 11:51 AM


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