+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting time comparison w/ =NOW()

  1. #1
    Registered User
    Join Date
    09-20-2010
    Location
    Bowie, MD
    MS-Off Ver
    Excel 2003
    Posts
    1

    Conditional Formatting time comparison w/ =NOW()

    Guy's and Gals,

    I was wondering if you could help me. I'm not sure if it's possible, but I want to be able to highlight a whole row of data based on whether a plane has taken off and whether it has landed. I'm a total newb when it comes to excel.

    So far I've identified 3 conditions that need to be met.

    [condition I]
    If the current time lies between arrival and departure time, high light the row of data 'green'

    [condition II]
    if the current time falls after the arrival, highlight the row of data 'red'

    [condition III]
    if no other condition is met, leave color as is

    You're help is greatly appreciated.


    Also: How would I go about setting up conditional formatting where another user w/no Excel experience can edit without worrying about corrupting my functions?
    Attached Files Attached Files
    Last edited by khamplex; 09-21-2010 at 02:55 PM. Reason: Additional entry

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Conditional Formatting time comparison w/ =NOW()

    hi khamplex,

    it's very hard to handle times in excel that are not stored as times.
    But here I've try:

    Try this for condition 1:

    =((TEXT($E3,"0000")&TEXT($F3,"0000"))-(TEXT($E3,"0000")&TEXT(HOUR(NOW()),"00")&TEXT(MINUTE(NOW()),"00")))>0

    This for condition 2:

    =TEXT($F3,"0000")<TEXT(HOUR(NOW()),"00")&TEXT(MINUTE(NOW()),"00")
    Last edited by zbor; 09-21-2010 at 03:28 PM.

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: Conditional Formatting time comparison w/ =NOW()

    Also....all others are green since time has passed.
    Attached Files Attached Files

+ 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