+ Reply to Thread
Results 1 to 6 of 6

How to highlight consecutive dates meeting multiple criteria

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    119

    How to highlight consecutive dates meeting multiple criteria

    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
    Attached Files Attached Files

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: How to highlight consecutive dates meeting multiple criteria

    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

  3. #3
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: How to highlight consecutive dates meeting multiple criteria

    I'm getting an error #NAME?

    please explain the formula

    i'm using 2003 version, think its the error with countifs

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: How to highlight consecutive dates meeting multiple criteria

    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...

  5. #5
    Forum Contributor
    Join Date
    04-26-2013
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    119

    Re: How to highlight consecutive dates meeting multiple criteria

    Perfect.. thanks..

  6. #6
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: How to highlight consecutive dates meeting multiple criteria

    Glad it helps you and thanks for the feedback and rep

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Count rows meeting multiple criteria of multiple values
    By borcimaeh in forum Excel General
    Replies: 4
    Last Post: 08-24-2014, 02:37 PM
  2. Count Values not meeting Multiple Criteria
    By Foreverlearning in forum Excel General
    Replies: 3
    Last Post: 04-04-2012, 11:08 PM
  3. Excel 2007 : If Then Statement meeting multiple criteria
    By tonedog54 in forum Excel General
    Replies: 6
    Last Post: 05-20-2010, 04:37 PM
  4. Replies: 7
    Last Post: 12-28-2006, 04:29 AM
  5. Counting values meeting multiple criteria
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 06-12-2005, 03:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1