Consecutive cell count (with a catch)

oneillc9

New Member
Joined
Oct 21, 2014
Messages
6
Hi - thank you for viewing and I hope you can help me out.

Quite simply, in column A I have a list of all the dates in 2015 beginning on Jan 1st. For this example, Column B contains a name. Vacation days are entered in column B (marked with a 'V'). In cell B2 I want to add a check for whether or not the person has taken off 10 consecutive weekdays (i.e. 2 weeks holidays) at any point throughout the year.

I'm tempted to write a macro to loop through the cells but desperately want to avoid that. Is this possible using some kind or array formula?

Many thanks in advance.

DateJohn
2 Weeks Consecutive Holidays?[Y/N]
Thu-01-JanV
Fri-02-JanV
Sat-03-Jan
Sun-04-Jan
Mon-05-JanV
Tue-06-JanV
Wed-07-JanV
Thu-08-JanV
Fri-09-JanV
Sat-10-Jan
Sun-11-Jan
Mon-12-JanV
Tue-13-JanV
Wed-14-JanV

<tbody>
</tbody>
 
Thanks to both of you (iliauk and barry). I managed to take your solutions and expand to meet all of my other (unmentioned) requirements. Such an efficient solution.
 
Upvote 0

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,455
Messages
6,124,935
Members
449,195
Latest member
Stevenciu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top