+ Reply to Thread
Results 1 to 8 of 8

Conditional Fomatting on cells with time in them

  1. #1
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Conditional Fomatting on cells with time in them

    Im trying to do conditional formatting on a cell that contains time in it
    So basically the formula to me would be: =if(C10+0.00347=>O2) then the text would turn red… I am having no luck getting this to work help please

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Conditional Fomatting on cells with time in them

    You don't usually have an IF statement in a conditional formatting formula - it is usually a formula that evaluates to either TRUE or FALSE. Also, you would write it as >= not =>, so try it with this in the CF dialogue box:

    =C10+0.00347 >=O2

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-17-2016
    Location
    India
    MS-Off Ver
    2010
    Posts
    83

    Re: Conditional Fomatting on cells with time in them

    Hi,

    Try this formula in conditional format
    =$C2+0.0347>=$O2
    And Apply Format

    Thanks.....
    Thank You.....

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Fomatting on cells with time in them

    Hi,

    As a CF try
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You don't need an IF test.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Conditional Fomatting on cells with time in them

    Thanks for your help.. it sorta works not sure causing to work for some and not others though...I am applying it to c9:c18

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Conditional Fomatting on cells with time in them

    Then (with C10 selected) the condition should probably be:

    =C10+0.00347 >=$O$2

    as I assume you want to compare with O2 for all of those cells in your range.

    Hope this helps.

    Pete

  7. #7
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Conditional Fomatting on cells with time in them

    I do and its still working correctly I think it has do with the adding of the time to C10 (adding 5 minutes to time ten comparing)

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Fomatting on cells with time in them

    Depending on the degree of accuracy you actually want you may wish to consider adding .00347222222 since comparing a time plus .00347 with a time plus 5 minutes will give you a False.

    You might need to include a ROUND() somewhere.

+ 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 fomatting for duplicates between two rows
    By ArnolddG in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-21-2013, 02:58 PM
  2. Formulas, Conditional Fomatting and Macros
    By KStrong in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-13-2013, 01:06 AM
  3. Conditional Fomatting using macro, vba if needed.
    By sammy99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-04-2013, 01:12 PM
  4. Conditional fomatting with date and time in excel
    By kiranpat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-08-2012, 04:43 PM
  5. Conditional Fomatting formula
    By loner2003 in forum Excel General
    Replies: 2
    Last Post: 09-15-2010, 09:26 AM
  6. Conditional Fomatting >3 in code
    By Nuttychick in forum Excel General
    Replies: 3
    Last Post: 06-02-2006, 12:50 PM
  7. conditional fomatting
    By Jock W in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-28-2006, 07:50 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