Counting values based on a criteria in the next cell

octjan

New Member
Joined
Jul 17, 2018
Messages
3
Hi,

I update a roster for the entire month in the attached format and intend to capture shift details.


Row 1 indicates the holidays marked as 'H' and row 4 captures the individuals working in the night shift.


For costing purposes I want to count how many times BB has worked the night shift in the month when the following day was a holiday.


In this example the answer I'm expecting is 2 in Cell J2 where BB worked on 31 May and 04 Jun when the following day was a holiday

Would appreciate some help in creating a formula to capture this info. Thanks in advance!
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
1WL95z9HSUAIjTbDX-BWZ7LP-XQikpNu_
 
Upvote 0

Forum statistics

Threads
1,214,551
Messages
6,120,159
Members
448,948
Latest member
spamiki

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