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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
1WL95z9HSUAIjTbDX-BWZ7LP-XQikpNu_
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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