I have 7 columns representing days of the week, they each contain a 0 or 1 to indicate if the person is working that day.
I need to create an array formula to measure how many days worked (1) until they have a day off - so number of consecutive 1s until 1st 0.
I also need to calculate how many 1s from the last 0 to the end of the row.
I need to create an array formula to measure how many days worked (1) until they have a day off - so number of consecutive 1s until 1st 0.
I also need to calculate how many 1s from the last 0 to the end of the row.
Staff | Mon | Tue | Wed | Thu | Fri | Sat | Sun | start | end |
GD | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 3 | 2 |
DR | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 3 |
MD | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 |
DLH | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 |