I have a hard time creating an excel table that I want to use in order to calculate the nightshift hours I spend doing my job
.
I want to create a formula that would automatically do this for me and I would just have to change the values.
As a side note: They are only considered night-shift hours if there are past 22:00 (10PM) and there are 3 consecutive hours. It should look something like this:
(I have attached a work-sheet)
What Should the formula be?
I tried multiple variants that involved =SUM, =AND, =COUNTIF
I have also tried using the formula:
=COUNTIF(A1:A10,">22:00")-COUNTIFS(A1:A10,">22:00",A2:A11,">22:00",A3:A12,">22:00")
But this is definitely not accurate,
Am I at least on the right path?
Bookmarks