+ Reply to Thread
Results 1 to 16 of 16

Conditional formatting of cells with minutes as the cell values

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

    Conditional formatting of cells with minutes as the cell values

    Good evening all! I sure hope that one of you Excel wizards can help me with this one.

    I am trying to establish conditional formatting that will highlight some cells red if the value is greater than 07:00
    Below is column of cells to be formatted. These are all times for drive through averages at a fast food restaurant.
    I want to automatically highlight any cell with a value greater than 07:00 minutes.

    07:49
    07:29
    08:00
    05:48
    07:43
    07:10

    Any help would be greatly appreciated !!!

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Conditional formatting of cells with minutes as the cell values

    Apply this rule to the cell if > 0.00486 (this is what fraction of a day 7 minutes is 7/1440)

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Conditional formatting of cells with minutes as the cell values

    For cell A2

    =A2>7/(24*60)
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Conditional formatting of cells with minutes as the cell values

    Hi, welcome to the forum

    What you need to understand about dates and times in excel is…

    a date is just a number representing the number of days passed since 1/1/900...and then formatted in a way that we recognize as a date. So, for instance, today (Sun 18 Nov 2018) is actually 43422

    Time is actually a decimal part of 1 (day), so 06:00 AM is 0.25, 12 noon is 0.5 and 18:00 (or 6 PM) is 0.75

    So, based on that, 7 minutes =7/60/24 which calcs to 0.00486111111111111

    I would therefor set your CF rule to be >= 0.00486

    Give that a shot and let me know how you make out?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Conditional formatting of cells with minutes as the cell values

    Unfortunately none of those fixes worked.
    I jused all of the suggestions and the result was either nothing happened at all
    or all of the cells in the column were highlighted even the 5:48 which the conditional
    format that I want programed is that any cell with a value greater than 07:00 will be
    red.

    07:49
    07:29
    08:00
    05:48
    07:43
    07:10

    Thank you very much for the follow up and suggestions. Any other ideas?

  6. #6
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Conditional formatting of cells with minutes as the cell values

    Check you are actually formatted for mm:ss and not hh:mm

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

    Re: Conditional formatting of cells with minutes as the cell values

    hi kersplash, I am not sure how to perform that task

  8. #8
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Conditional formatting of cells with minutes as the cell values

    Or try entering time like this;

    00:07:49

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

    Re: Conditional formatting of cells with minutes as the cell values

    Good morning Kersplash!

    Maybe I am not doing the right thing at all.
    Here is step by step of what I am doing
    #1. Highlighting the column of cells
    #2. Clicking on Conditional Formattting icon
    #3. Choosing "new rule"
    #4. Choosing "use a formula to determine which cells to format"
    #5. typing in the proposed formula into the box named "format values where formula is true"
    #6. Selecting my fill color and my font color
    #7. Clicking on "Format"

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Conditional formatting of cells with minutes as the cell values

    Which is the range you want to CF.

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

    Re: Conditional formatting of cells with minutes as the cell values

    Good morning, below is the column that I am trying to CF so that anything greater than 07:00 is shaded red.

    Any help would be much appreciated!

  12. #12
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Conditional formatting of cells with minutes as the cell values

    Where is the file.

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

    Re: Conditional formatting of cells with minutes as the cell values

    Attached

    trying to do CF in rows 54 through 59 and columns E through AJ
    Anything 07:00 or greater in red with white font
    Anything 05:00 or lesser in yellow with black font
    Attached Files Attached Files

  14. #14
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Conditional formatting of cells with minutes as the cell values

    As the values in the file are both text and hours:minutes the formulas for CF are:
    Red/White: =VALUE(E54)>7/24
    Yellow/Black: =VALUE(E54)<5/24
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

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

    Re: Conditional formatting of cells with minutes as the cell values

    JeteMc You are indeed a "Guru" you solved my problem !!!

    Thank you!!!

  16. #16
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Conditional formatting of cells with minutes as the cell values

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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] How to use conditional formatting on multiple cells, depending on other cell values
    By Supersadie in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-03-2018, 01:59 PM
  2. Replies: 2
    Last Post: 12-05-2016, 10:59 AM
  3. Formatting Cells with Date or Text Values in a Conditional Formatting Formula
    By Phil Hageman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-15-2014, 09:36 AM
  4. Replies: 2
    Last Post: 06-20-2014, 10:48 AM
  5. Conditional formatting a cell based on values in two different cells
    By srmp07 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-02-2013, 07:54 PM
  6. Replies: 2
    Last Post: 08-20-2013, 10:27 AM
  7. [SOLVED] Conditional Formatting of a cell based on values of other cells
    By excellenct in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2013, 10:38 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