+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting on a Time

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    97

    Conditional Formatting on a Time

    Hi Everyone,

    Im trying to write what should be a really simple conditional format but this is driving me insane!

    All I want is for rows A-F to turn a colour if the time in column C equals midnight (0:00).

    As I little knowledge of the time function I started by writing a standard if statement in a nearby cell:-

    =IF(C7=TIME(0,0,0),"yes","no")

    I then tried to turn that into the conditional format, but Im going wrong somewhere!

    =IF(C7=TIME(0,0,0)

    please could you help before something awful happens to my laptop?!

    Thanks
    kind regards
    Alex
    Last edited by cossie2k; 09-12-2015 at 11:03 AM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting on a Time

    12:00 AM has the numeric value of 0.

    An empty cell also has the numeric value of 0.

    So, if there are any empty cells you'll have to account for those if you don't want them to be formatted.

    If there are not empty cells:

    =C7=0

    If there are empty cells:

    =AND(ISNUMBER(C7),C7=0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    02-01-2012
    Location
    Manchester, UK
    MS-Off Ver
    Excel 2010
    Posts
    97

    Re: Conditional Formatting on a Time

    You're a genius!

    Thank you so much! Looks like I was trying to over complicate things!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Conditional Formatting on a Time

    Quote Originally Posted by cossie2k View Post
    You're a genius!
    Spread the word!

    Thank you so much!
    You're welcome!

+ 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. Conditional Time Formatting
    By djbeasley05 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2014, 09:32 PM
  2. Conditional Formatting with a time Value
    By Jerrygardner in forum Excel General
    Replies: 7
    Last Post: 07-16-2013, 03:18 PM
  3. [SOLVED] Conditional Formatting - using Time (or NOW())
    By Apache_sim in forum Excel General
    Replies: 6
    Last Post: 07-09-2013, 01:57 PM
  4. [SOLVED] Is there any way to time Conditional Formatting?
    By foxguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2013, 10:12 AM
  5. Conditional Formatting Time...
    By Will03 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-28-2013, 10:09 PM
  6. [SOLVED] Conditional formatting with time
    By Sparkplug90 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-10-2013, 11:10 PM
  7. Replies: 4
    Last Post: 01-11-2012, 07:59 PM
  8. Excel 2007 : Conditional Formatting Time
    By TimTheMercyless in forum Excel General
    Replies: 6
    Last Post: 11-18-2010, 02:33 PM

Tags for this Thread

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