+ Reply to Thread
Results 1 to 5 of 5

Cells change color based on time late

  1. #1
    Registered User
    Join Date
    06-17-2019
    Location
    washington
    MS-Off Ver
    2010
    Posts
    2

    Cells change color based on time late

    Hi there,

    I am trying to have my cell block change color over a series of time based on the time that has been inserted. For example if I enter in the time of 03:21 AM the cell will stay green for 30 minutes, after the 30 minutes it will turn yellow for the next hour and a half until the 2 hour mark is reached at that point it will turn red. Honestly I am not sure if this is possible, but any help would be greatly appreciated.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,871

    Re: Cells change color based on time late

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-18-2019
    Location
    Chile
    MS-Off Ver
    MS OFFICE STANDARD 2013
    Posts
    7

    Re: Cells change color based on time late

    Hello,

    Not sure if this is exactly what you want and but I can see a way of doing it using conditional formatting.
    Let say you have 3:21:00 on cell A1
    then you add differents times below, on cell A2 then A3 and so forth. Like this:

    3:21:00
    3:41:00
    3:51:00
    4:51:00

    ...for example.

    Select the range you want to color (A1:A4) then use conditional formatting to color each cell based on your criteria. In your case it will be:

    Green if "range" is less o equal to whatever is on cell A1+0.5/24. (0.5/24 means adding half an hour)
    Yellow if "range" is between cell A1+0.5/24 and cell A1+1.5/24
    Red if "range" is more than A1+1.5/24

    Hope it helps
    JG

  4. #4
    Registered User
    Join Date
    06-17-2019
    Location
    washington
    MS-Off Ver
    2010
    Posts
    2

    Re: Cells change color based on time late

    Attached is the book that I am working on.
    Attached Files Attached Files

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

    Re: Cells change color based on time late

    Hello Jacob and Welcome to Excel Forum.
    When I opened the file there were two different types of entry. Cell B3 had a date and time whereas cell C3 had time only, so I am going to assume the date and time type.
    For green: =B3+TIME(0,30,0)>NOW()
    For yellow: =B3+TIME(2,0,0)>NOW()
    For red: =B3+TIME(2,0,0)<=NOW()
    All three rules are applied to B3:D3
    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.

+ 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. Change Shape Color RGB based on Cells Color
    By jocker_boy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-30-2019, 05:31 AM
  2. [SOLVED] Need to change cell color based off of RGB Color being defined in 3 cells
    By Chris McGlothen in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-01-2017, 02:13 PM
  3. Change cell color in a range of cells every time the month changes
    By Josiah in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2016, 03:15 PM
  4. [SOLVED] Format cells to change color based on the amount of time that has lapsed.
    By Ian Frost in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-18-2016, 02:41 PM
  5. [SOLVED] macro to change the color of cells based on their sum
    By dgibney in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2014, 07:30 PM
  6. [SOLVED] change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  7. is it possible to change font color based on the time it is modified?
    By yellowpower in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2011, 05:53 PM

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