Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-01-2009, 07:28 AM
Phil_H Phil_H is offline
Registered User
 
Join Date: 01 Jul 2009
Location: Brighton
MS Office Version:Excel 2003
Posts: 2
Phil_H is becoming part of the community
Counting the number of Mondays between a start and end date

Please Register to Remove these Ads

Hi,

I had a formula that uses a start and end date and the excel value for Monday (2) to return the number of mondays there are between two dates.

For the life of me, I can't find it now - anyone have this?


Cheers
Phil
Reply With Quote
  #2  
Old 07-01-2009, 09:17 AM
squiggler47's Avatar
squiggler47 squiggler47 is offline
Valued Forum Contributor
 
Join Date: 17 Feb 2009
Location: Littleborough, UK
MS Office Version:Excel 3.0 to 2007+2010! (couldnt get 2.1 working)
Posts: 457
squiggler47 is attaining expert status squiggler47 is attaining expert status
Re: Counting the number of Mondays between a start and end date

=SUMPRODUCT(--(WEEKDAY(StartDate-1+ROW(INDIRECT("1:"&(EndDate-StartDate+1))))=2))


red 2 can be changed to 1=sun .. 7 = sat
__________________
No longer looking for work (still if you want to pay me lots of money lets talk!!!)

If you are happy with the results, please add to our reputation by clicking the blue scales icon in the blue bar of the post.

We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare............

Now, thanks to the Internet, we know this is not true.


Robert Wilenski (since there is some confusion I am not Robert he wrote the quote!)
Reply With Quote
  #3  
Old 07-01-2009, 09:46 AM
Phil_H Phil_H is offline
Registered User
 
Join Date: 01 Jul 2009
Location: Brighton
MS Office Version:Excel 2003
Posts: 2
Phil_H is becoming part of the community
Re: Counting the number of Mondays between a start and end date

You dancing bear!

Thanks - works a treat.
Phil
Reply With Quote
  #4  
Old 07-01-2009, 09:57 AM
arthurbr's Avatar
arthurbr arthurbr is offline
Non English Excel Moderator
 
Join Date: 23 Dec 2006
Location: Belgium
MS Office Version:XL2003
Posts: 2,890
arthurbr has an addiction to Excel
Re: Counting the number of Mondays between a start and end date

If you are satisfied with the solution(s) provided, please mark your thread as Solved.

How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
__________________

If you are pleased with a member's answer then use the Scales icon to rate it
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump