+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting with time

  1. #1
    Registered User
    Join Date
    07-04-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    81

    Conditional formatting with time

    Dear all,

    I'm trying to apply a conditional formatting to a column and I would like to highlight all time values >= 9:30:00

    My current format does this, but unfortunately it also formats the blank ("") cells.

    I guess I need some IF condition or NOT to resolve this, but I'm too inexperienced to find the solution (and Google doesn't help ).

    Solution

    IF blank ("") THEN no formatting
    IF < 9:30:00 THEN no formatting
    IF >= 9:30:00 THEN formatting

    Could any1 help?

    Best regards,

    dunnobe
    Attached Files Attached Files
    Last edited by dunnobe; 08-30-2017 at 07:18 AM.

  2. #2
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Conditional formatting with time

    Hi dunnobe- Select "Use a formula to determine which..." and apply this CF formula in E2:
    =N(E2)>=TIME(9,30,0)
    Last edited by leelnich; 08-30-2017 at 04:33 AM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  3. #3
    Registered User
    Join Date
    07-04-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    81

    Re: Conditional formatting with time

    Hi leelnich,

    It works, but what is =N and do I have to put dollar signs?

    How do I pick the traditional red "bad" color with such a conditional formatting?
    Last edited by dunnobe; 08-30-2017 at 04:46 AM.

  4. #4
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Conditional formatting with time

    1) The N() function coerces a value into a number. In this case, "" is changed to zero so Excel can compare it correctly.
    2) No. Dollar signs dictate ABSOLUTE (fixed) vs. RELATIVE addressing. In this case, you need relative addressing so the formula adjusts in each cell.
    3) In the Conditional Formatting Dialog box, click Edit..., click Format..., then select the Fill tab. Now select from the color palette or click More Colors....

    Excel's N() function
    Excel Addresses
    Last edited by leelnich; 08-30-2017 at 05:21 AM.

  5. #5
    Registered User
    Join Date
    07-04-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    81

    Re: Conditional formatting with time

    *Never mind. I managed to copy-paste most of the Bad-style's properties.

    Thank you for your help.

    dunnobe
    Last edited by dunnobe; 08-30-2017 at 05:33 AM.

+ 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] Conditional Formating Time help
    By Beastwood in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-21-2013, 11:44 AM
  2. Conditional formating based on the time and date
    By kricks99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2013, 09:42 PM
  3. Conditional Formating - using time HH:MM:SS AM/PM
    By OldTownComputers in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-01-2013, 07:45 PM
  4. Time Formating for Conditional Formating
    By harryhoudini66 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-14-2013, 09:33 AM
  5. Conditional Formating using time
    By David_S_Walker in forum Excel General
    Replies: 5
    Last Post: 06-16-2011, 08:34 AM
  6. [SOLVED] Conditional Formating Time FunctionOver Midnight
    By AlexRoberts in forum Excel General
    Replies: 1
    Last Post: 10-31-2010, 05:32 AM
  7. Conditional Formating - using time h:mm AM
    By Foxcan in forum Excel General
    Replies: 1
    Last Post: 06-23-2009, 09:30 AM
  8. Help with Conditional Formating Time
    By jonhunt in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-13-2006, 04:10 PM

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