Share via

Conditional formatting

Anonymous
2019-09-03T06:54:44+00:00

How to get excel to dynamically format cells based on their content. The content is formatted as time (hh:mm:ss) For example I want all cells with a value of less than 6 hours to be red. None of the options I can find on the internet work

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

18 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Anonymous
    2019-09-03T12:24:57+00:00

    Thanks but that only works for one cell.

    How do I get it to check either a whole column or a whole row, and I want to also add a different colour if it is <6 >12, and yet another if > 12

    Thanks for your help. The colons instead of the commas worked.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2019-09-03T10:30:31+00:00

    Could you please try to change the " , " to " ; " ? , the formula will then becomes:

    =$A2<=TIME(6;0;0)

    Thanks

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2019-09-03T10:05:56+00:00

    Tells me there is a problem with that formula.

    I changed A2 to the cell I was trying to format

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2019-09-03T09:43:45+00:00

    I've tried creating an excel file for you and below is the link. Kindly download the file and see if it works as what you need:

    https://drive.google.com/file/d/1JtQ_Ky84VyIEv9...

    What I did was:

    1. Under Conditional formatting, i clicked on the new rule then,
    2. click on the "Use a formula to determine which cells to format"
    3. Under the "Format values where this formula is true:" I use this formula:

    =$A2<=TIME(6,0,0)

    **I converted the value of the cell in a2 to time, since it is read by excel as numbers under conditional formatting.

    1. I clicked on Format, then on the Fill tab I chose the red color.
    2. Then click on Ok.

    If you want to edit it and apply it to all other cells, you may click on the Conditional Formatting again, and look for Manage Rules, under "Applies to:" you may select in which cell you would wanted to apply it.

    Hope this helps.

    Thanks

    Was this answer helpful?

    0 comments No comments