+ Reply to Thread
Results 1 to 6 of 6

Highlighting Cell Depend On two criteria date and time

  1. #1
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Highlighting Cell Depend On two criteria date and time

    Hi All,

    Hope anyone helpout me with it i have a workbook that have multiple sheets and a summary sheet ,
    what i want in summary sheet
    On Appointment time wise sheet we need date wise and time wise count of appointment generated on particular day. Total require count of appointment in specific time slot is 5. So if 4 appointment are there it should show green and as it cross 5 it should become red.
    Attached Files Attached Files
    If answer helped you say Thanks by Add Reputation

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,409

    Re: Highlighting Cell Depend On two criteria date and time

    First I would tidy up your time recording: some times slots are in correct time format (hh:mm:ss) others in GENERAL e.g.. 12.30 PM or 12:00PM. Only then can you get a sensible formula to provide the results you want.

  3. #3
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: Highlighting Cell Depend On two criteria date and time

    Any help would be appreciated.

    thanks in advance.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,409

    Re: Highlighting Cell Depend On two criteria date and time

    Sorry but it is your responsibility to ensure your data is correct.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,409

    Re: Highlighting Cell Depend On two criteria date and time

    See attached.

    General formula

    =COUNTIFS(Pune_June!$B:$B,$A3,Pune_June!$P:$P,">" &TIME(10,0,0),Pune_June!$P:$P,"<=" &TIME(12,0,0))

    =COUNTIFS(Delhi_June!$B:$B,$A3,Delhi_June!$C:$C,">" &TIME(10,0,0),Delhi_June!$C:$C,"<=" &TIME(12,0,0))

    Adjust Times for other columns

    I amended all your erroneous times: please ensure any future times are entered as hh:mm:ss (or hh:mm)

    Perhaps use a Data Validation list (07:00 to 20:00) to ensure all entries are valid times.
    Attached Files Attached Files
    Last edited by JohnTopley; 06-15-2016 at 06:51 AM.

  6. #6
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: Highlighting Cell Depend On two criteria date and time

    Dear John,

    Thank you for such a nice solution , yes i agree its my responsibility and your suggestion is perfect for me i will the same which you have suggested , thanks again sir.

+ 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. [SOLVED] Sumif referencing another cell for criteria (date and time format)
    By Baldowsky in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-23-2014, 05:01 AM
  2. Formate A Cell Depend on Date
    By moazzamali in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-02-2014, 07:56 AM
  3. [SOLVED] How Do I Write a Macro for Highlighting Rows Based on Date Criteria
    By TMack in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-21-2013, 11:15 AM
  4. Re: Color cells depend on criteria in column G in same row
    By KyleKaplan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2011, 01:23 PM
  5. Color cells depend on criteria in column G in same row
    By unley in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-16-2011, 04:10 PM
  6. highlighting date when passed certain time
    By gixxer-tech in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-26-2010, 04:36 PM
  7. auto - time n% depend on the value of column
    By SelinaT in forum Excel General
    Replies: 6
    Last Post: 01-26-2007, 04:16 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