+ Reply to Thread
Results 1 to 4 of 4

conditional formating to change cell colour when time has reached 30 mins then 60 mins

  1. #1
    Registered User
    Join Date
    11-30-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    6

    conditional formating to change cell colour when time has reached 30 mins then 60 mins

    How can I set a conditional format for a cell so that it changes colour once it has passed 30 minutes and then when it has passed 60 minutes.

    Column Time entered - time put in when something is received. If it is not dealt with within 30 minutes of time received it will turn amber and if it is not dealt with within 60 minutes it will turn red. Once a time has been entered in to the next column which is time dealt with, the time entered cell will turn green.

    I can set this for one change i.e. red by this formula =$G6:$G346+TIME(1,0,0)<(NOW()-TODAY())

    and Green by this formula = =LEN($H6:$H346)>0

    but not sure how to add another one so that at 30 minutes it turns amber and then at 60 minutes it turns red.

    Hope that makes sense

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: conditional formating to change cell colour when time has reached 30 mins then 60 mins

    They need to be in order with "Continue if True" checked off (see attachment)
    Green first as you set
    =LEN($H3)>0

    Then Red
    =AND(ISBLANK($H3),$G3+ TIME(1,0,0)<NOW()-TODAY(),LEN($G3)>0)

    Then Amber
    =AND(ISBLANK($H3),$G3 + TIME(0,30,0)<NOW()-TODAY(),LEN($G3)>0)
    Does that work for you?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094

    Re: conditional formating to change cell colour when time has reached 30 mins then 60 mins

    Hi,

    Where your time is in A5 try,

    Amber =AND(TIME(HOUR(NOW()),MINUTE(NOW()),SECOND(NOW()))>=$A$5+"00:30:00",TIME(HOUR(NOW()),MINUTE(NOW()),SECOND(NOW()))<=$A$5+"00:59:59")
    Red =TIME(HOUR(NOW()),MINUTE(NOW()),SECOND(NOW()))>$A$5+"00:59:59"

    HTH

    Steve

  4. #4
    Registered User
    Join Date
    11-30-2010
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: conditional formating to change cell colour when time has reached 30 mins then 60 mins

    Thanks, that worked, had spent practically all day trying to figure out a way to do that!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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