+ Reply to Thread
Results 1 to 6 of 6

Time formula to deduct two times

  1. #1
    Registered User
    Join Date
    09-18-2007
    Posts
    16

    Time formula to deduct two times

    I am looking to create a formula to work out the difference between a deadline time and the current time, if the deadline has passed I want to show as red, within an hour of the deadline amber and greater than an hour before the deadline green

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Time formula to deduct two times

    See if this works for you.
    Attached Files Attached Files
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    09-18-2007
    Posts
    16

    Re: Time formula to deduct two times

    Hi, I am looking for a seperate cell which states RED, AMBER or GREEN

    I have the time (NOW) in one static cell and various deadlines and I want to RAG the cells next to each deadline

    I.e. 13:09 (now) 14:00 (deadline) and "RAG Status. My current formula is trying to update a cell saying RED etc (I have done conditional formatting to change colour automatically).

    Here is my formula that will not work "=IF($I$9>0,"RED",IF($I$9<-1-0,"AMBER","GREEN"))

  4. #4
    Registered User
    Join Date
    09-18-2007
    Posts
    16

    Re: Time formula to deduct two times

    Sorry I am using Excel 2003

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Time formula to deduct two times

    Good idea to put your excel version in either your profile (like mine) or in your sig block.

    Sorry I blanked out and went straight to conditional formatting for some reason.

    =IF($B$2<$A$2,"RED",IF(AND($B$2>$A$2,$B2<TIME(HOUR($A$2)+1,MINUTE($A$2),SECOND($A$2))),"AMBER",IF($B$2>TIME(HOUR($A$2)+1,MINUTE($A$2),SECOND($A$2)),"GREEN")))

    A2 = 13:09
    B2 = 14:00

  6. #6
    Registered User
    Join Date
    09-18-2007
    Posts
    16

    Re: Time formula to deduct two times

    Thanks almost there, my time (NOW) is on C2 and my deadline is in E9

+ 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