Hi Seniors, please help me out in highlighting consecutive dates meeting multiple criteria in the given Attendance data.
Sample sheet attached. Criteria : Emp no & if Leave type is 'CL or SL'
Thanks in advance !
Regards,
Divya
Hi Seniors, please help me out in highlighting consecutive dates meeting multiple criteria in the given Attendance data.
Sample sheet attached. Criteria : Emp no & if Leave type is 'CL or SL'
Thanks in advance !
Regards,
Divya
In H2 Cell
=IF(OR(F2={"CL","SL"}),IF(COUNTIFS(B:B,B2,D:D,D2-1)+COUNTIFS(B:B,B2,D:D,D2+1),"Yes","-"),"-")
Drag it down...
If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
Mark your thread as Solved
If the suggestion helps you, then Click *below to Add Reputation
I'm getting an error #NAME?
please explain the formula
i'm using 2003 version, think its the error with countifs
Oopss.. try this...
In H2 Cell
=IF(OR(F2={"CL","SL"}),IF(SUMPRODUCT(($B$1:$B$19=B2)*($D$1:$D$19=(D2-1))+($D$1:$D$19=(D2+1))),"Yes","-"),"-")
Drag it down...
Perfect.. thanks..
Glad it helps you and thanks for the feedback and rep![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks