LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 6
Default Count the remaining weekdays in a data range excluding holidays and start/end dates

Hello,

I need some help. I need to count the remaining weekdays (eg. Mondays) in a date range. I also need to exclude holidays and the date range in my count.


A1 Start Date: 07/01/2013
B2 End Date: 07/31/2013

A4 Holidays
A5 01/01/2013
A6 05/27/2013
A7 07/04/2013

A9 Number of Remaining Mondays
A10 5
A11 Number of Remaining Thursdays (excluding holiday)
A12 3

A10 =INT((WEEKDAY(A2-2)-A2+B2)/7)-SUMPRODUCT(--(WEEKDAY(A5:A7)=2),--(A5:A7=A2),--(A5:A7<=B2))

A12 =INT((WEEKDAY(A2-5)-A2+B2)/7)-SUMPRODUCT(--(WEEKDAY(A5:A7)=5),--(A5:A7=A2),--(A5:A7<=B2))

I need A10 to be 4 to exclude the start date. Whenever I change the start date, the count for the remaining weekdays must excludes that start date Eg. On Tuesday, 07/30/2013, there should be 0 count for the remaining Tuesdays in the date range btw 07/30/2013 and 07/31/2013. Likewise, for Wednesday 07/31/2013, there is a 0 count for the remaining Wednesdays in the month of July.

Please help.

Thanks Addatone
 
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
difference between two dates & time by excluding holidays & weeken Rohit Excel Programming 1 February 20th 09 12:02 PM
Calculates Dates Based on 7 day week excluding Holidays Daviv Excel Discussion (Misc queries) 1 January 17th 07 07:02 PM
fill a series of dates excluding holidays gsh20 Excel Worksheet Functions 1 August 25th 05 12:33 AM
How do you count work days excluding weekends and holidays? Hausma Excel Discussion (Misc queries) 2 April 8th 05 07:39 PM
formula to calculate # of days between dates, excluding holidays abs2299 Excel Discussion (Misc queries) 8 March 3rd 05 02:21 AM


All times are GMT +1. The time now is 08:26 AM.

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"