Hi there,
I have a spreadsheet that includes the dates and Number of days the employees have been taking sick leave in the last year. The information is shown as per the following table:
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
At this stage, I need to highlight the consecutive days that an employee has been requesting sick leave. As the aim is to identify who is taking days in a row.
I have been trying to use the conditional formatting à New rule à use a formula, with the following formula:
=(COUNTIF($B$3:$B$500,B3+1)+COUNTIF($B$3:$B$500,B3-1))>0
However, is not working.
Thanks for your help
I have a spreadsheet that includes the dates and Number of days the employees have been taking sick leave in the last year. The information is shown as per the following table:
Full Name | Leave Start Date | Leave End Date | Units Taken |
Maria | 8/09/2016 | 8/09/2016 | 6 |
Maria | 7/12/2016 | 7/12/2016 | 7.5 |
Maria | 8/12/2016 | 8/12/2016 | 6 |
Maria | 10/12/2016 | 10/12/2016 | 6.5 |
Joe | 21/03/2016 | 21/03/2016 | 7.5 |
Joe | 22/03/2016 | 22/03/2016 | 7.5 |
Joe | 24/03/2016 | 24/03/2016 | 5.75 |
Jenny | 17/08/2016 | 17/08/2016 | 7.5 |
Jenny | 18/08/2016 | 18/08/2016 | 7.5 |
Anna | 8/04/2016 | 8/04/2016 | 7.6 |
Anna | 18/04/2016 | 18/04/2016 | 7.6 |
Lee | 22/01/2016 | 22/01/2016 | 1.5 |
Lee | 7/04/2016 | 7/04/2016 | 4.6 |
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
At this stage, I need to highlight the consecutive days that an employee has been requesting sick leave. As the aim is to identify who is taking days in a row.
I have been trying to use the conditional formatting à New rule à use a formula, with the following formula:
=(COUNTIF($B$3:$B$500,B3+1)+COUNTIF($B$3:$B$500,B3-1))>0
However, is not working.
Thanks for your help