Stephen_IV
Well-known Member
- Joined
- Mar 17, 2003
- Messages
- 1,180
- Office Version
- 365
- 2019
- Platform
- Windows
In A1 I have a start Date 7/22/2011 and in B1 I have an end date 7/29/2011. What I am trying to do is to count how may Monday to Friday consecutive groups there are in that date range. For example 7/22/2011 is a Friday, 7/23/2011 is a Sat, 7/24/2011 is a Sunday, 7/25/2011 is a Monday, 7/26/2011 is a Tuesday, 7/27/2011 is a Wednesday, 7/28/2011 is a Thursday,and 7/29/2011 is a Friday. The count for this range would be 1 because 7/22/2011 is Friday and 7/26/ is Monday. Tried to modify this formula but to no avail
=SUMPRODUCT(--(MOD(WEEKDAY(ROW(INDIRECT(A6&":"&B6)),2),4)=1)). Thanks in advance.
=SUMPRODUCT(--(MOD(WEEKDAY(ROW(INDIRECT(A6&":"&B6)),2),4)=1)). Thanks in advance.