I have the following formula which I got from the forum and modified it slightly
=IF(COUNTIF(AY6:AY19,"1")>=2,"YES","NO")
Unfortunately it hasn't worked!!
What I am trying to achieve is the following: this formula is copied down column "AX". Down column "AY" has input whether a day off was taken that day by populating the cell with "1". and "0" if the individual worked. Now the formula should look at a block of 14 days previous to see if there was two consecutive days off and should indicate it with a "YES" if not then a "NO". It should only look for blocks of two days not single days. i.e if there was a block of four days then it should show with a "2" ( 2 sets of 2 consecutive days off). Appreciate any help please.
=IF(COUNTIF(AY6:AY19,"1")>=2,"YES","NO")
Unfortunately it hasn't worked!!
What I am trying to achieve is the following: this formula is copied down column "AX". Down column "AY" has input whether a day off was taken that day by populating the cell with "1". and "0" if the individual worked. Now the formula should look at a block of 14 days previous to see if there was two consecutive days off and should indicate it with a "YES" if not then a "NO". It should only look for blocks of two days not single days. i.e if there was a block of four days then it should show with a "2" ( 2 sets of 2 consecutive days off). Appreciate any help please.