+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting involving minutes and seconds

  1. #1
    Registered User
    Join Date
    11-18-2018
    Location
    Murfreesboro, TN
    MS-Off Ver
    Office 365
    Posts
    13

    Conditional formatting involving minutes and seconds

    I would like some help with conditional formatting

    I have a row with four cells in it
    .
    I would like the cell at the beginning of the row (column A) to become red if the
    value of the last cell in the row (column D) is greater than or equal to 7:00


    I would also like the cell at the beginning of the row (column A) to become yellow
    if the value of the last cell in the row (column D) is less than 7:00


    Any idea?

    Thank you!

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Conditional formatting involving minutes and seconds

    Use this conditional formatting formula and apply it to column A

    Please Login or Register  to view this content.
    and set format to red shading

    Please Login or Register  to view this content.
    and set format to yellow shading
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Conditional formatting involving minutes and seconds

    Just an observation - your title indicates that you are dealing with minutes and seconds. Just be aware that Excel is treating entries like 7:00 etc as hours and minutes, not minutes and seconds. That in fact is why Crooza's formula works.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  4. #4
    Registered User
    Join Date
    11-18-2018
    Location
    Murfreesboro, TN
    MS-Off Ver
    Office 365
    Posts
    13

    Re: Conditional formatting involving minutes and seconds

    Good morning, thank you for the advice. the formula =$D1>=7/24 for red shading is working, but it seems to be superceding the formula =$D1<7/24 for yellow shading. Cells with the value
    less than 7:00 (for example 6:45 or 5:30) are not yellow they are red too.

    Any thoughts?

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Conditional formatting involving minutes and seconds

    See the attached picture. Your implementation should look very similar.

    CF3.png

+ 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. Formatting in Minutes, Seconds and Milliseconds only
    By amanda_m_wilson in forum Excel General
    Replies: 7
    Last Post: 06-14-2016, 12:09 AM
  2. formatting minutes, seconds, milliseconds
    By sandib in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-25-2015, 10:23 AM
  3. Excel 2010: Formatting minutes and seconds
    By Mase1 in forum Excel General
    Replies: 1
    Last Post: 04-17-2013, 05:49 PM
  4. Formatting minutes and seconds
    By davidstrongarm in forum Excel General
    Replies: 1
    Last Post: 11-21-2010, 03:08 AM
  5. Replies: 3
    Last Post: 10-14-2009, 05:09 AM
  6. formatting cells for minutes:seconds
    By b in forum Excel General
    Replies: 1
    Last Post: 05-10-2006, 05:20 PM
  7. Formatting for Degrees Minutes and Seconds
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2005, 03:05 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