+ Reply to Thread
Results 1 to 4 of 4

Conditional format time if less/equal to greater than a cell

  1. #1
    Registered User
    Join Date
    01-27-2014
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Conditional format time if less/equal to greater than a cell

    In the attached file, the E column is the required hours that a student must be clocked in each week. I populate each week as the semester goes along, and what I want to have happen is this:

    Looking at row 12. The student should be clocked in for 22 hours per week (cell E12). Cell F12 is greater than or equal to E12, so it should display as white fill/black font. Cell G12 is less than E12, so it should display black fill/white font. (We are printing to a black laserjet). My Excel version is 2010. I've tried conditional formatting, and I have had less than stellar results. I suspect it is the fact that I am dealing with time, rather than a normal numeric value.

    Thanks in advance!
    Attached Files Attached Files

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

    Re: Conditional format time if less/equal to greater than a cell

    Select F4:T103, new rule>use formula
    =AND(ISNUMBER(F4), F4<$E4)
    format as black fill w/ white font.
    Similarly for reverse
    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
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: Conditional format time if less/equal to greater than a cell

    is this what you are looking for?
    Attached Files Attached Files
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    01-27-2014
    Location
    Georgia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Conditional format time if less/equal to greater than a cell

    Splendid!!! Thank you!

+ 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 formatting if equal or greater than average in the range of cells
    By Abu Abdurakhim in forum Excel General
    Replies: 7
    Last Post: 05-28-2013, 10:01 AM
  2. Greater than equal to conditional format only if cell contains value - macro
    By lukestkd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2012, 07:50 PM
  3. [SOLVED] Conditional Formatting + IF statements + Greater than or equal to
    By tiggynook in forum Excel General
    Replies: 2
    Last Post: 08-09-2012, 01:32 PM
  4. Replies: 4
    Last Post: 10-18-2011, 02:54 PM
  5. Macro to change date format and then run function based on greater than or equal to
    By Libster78 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2010, 09:37 AM

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