+ Reply to Thread
Results 1 to 4 of 4

Making a spreadsheet to plan my day: Highlight current time

  1. #1
    Registered User
    Join Date
    06-15-2023
    Location
    Freiburg, Germany
    MS-Off Ver
    Google Sheets only
    Posts
    2

    Making a spreadsheet to plan my day: Highlight current time

    Hello,
    I've created a (Google) spreadsheet that starts at 6:00 in the morning, all the way to midnight, in 15-minute steps (vertical/column).
    In Cell A1, there's the current time: =TEXT( NOW() ; "H:MM" )
    I would like to do a conditional formatting that will highlight in red the cell that reflects the current time.
    For example, if it's 15:51, the cell that has the time "15:45" written into it should be highlighted red.
    I assume it will automatically change color without having to refresh the page? (I wonder what happens when seconds are used, are cells then going to flash with multiple colors if one makes a conditional formatting of that kind...?
    The cell "15:45" should be colored red when the current time iis 15:45:00 ..... 15:59:59.
    Would someone be as kind as to show me how do to this?
    Thank you very much!

  2. #2
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,466

    Re: Making a spreadsheet to plan my day: Highlight current time

    Due to rounding differences that arise in Excel, try this conditional formula (applies to $B$2:...):
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Replace B2 and $B$2 with the top left corner of the area containing the times.

    Unfortunately, the formula does not refresh automatically.
    Last edited by HansDouwe; 06-15-2023 at 07:47 AM. Reason: In the formula, the commas are replaced by semicolons

  3. #3
    Registered User
    Join Date
    06-15-2023
    Location
    Freiburg, Germany
    MS-Off Ver
    Google Sheets only
    Posts
    2

    Re: Making a spreadsheet to plan my day: Highlight current time

    (found the solution)

    Hello HandDouwe, thank you a lot for helping me!

    I am sorry to say I didn't immediately understand your suggestion, and also your warning that it might not work automatically made me not look into it more deeply.

    Also I didn't find solutions on the internet close enough to what I was looking for.

    It then occured to me that I could ask ChatGPT and I was very impressed that it immediately came up with a solution. In fact I was wondering why you don't have a forum rule that says one is only supposed to ask questions when ChatGPT wasn't able to fix it! :-) Might also increase the quality of the board by reducing redundant / repetitive / too easy questions by newbies like myself, and give more time for the challening stuff.

    =AND(TIMEVALUE(TEXT(NOW();"HH:mm:ss")) >= TIMEVALUE("10:15:00"); TIMEVALUE(TEXT(NOW();"HH:mm:ss")) <= TIMEVALUE("10:29:59"))

    The formula works nicely and it updates fast and automatically. It looks great, I was "live" watching the bright red coloring jump from the 10:15 to the 10:30 cell, so cool!
    Last edited by cellix; 06-16-2023 at 04:33 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2412 (Windows 11 24H2 64-bit)
    Posts
    88,720

    Re: Making a spreadsheet to plan my day: Highlight current time

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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. Macro for making changes in HP Quality Center in Test Plan
    By cosiek in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-30-2021, 04:37 AM
  2. [SOLVED] Conditional Formatting - marking the current time on a spreadsheet
    By empri in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-12-2021, 06:49 PM
  3. Making Equipment Plan Scheudule and Need Help.
    By fishbone74 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-10-2020, 12:22 PM
  4. Highlight current time with CF
    By paulocsm in forum Excel General
    Replies: 12
    Last Post: 02-09-2018, 08:27 AM
  5. [SOLVED] Highlight current time in half hours using CF
    By tigfur in forum Excel General
    Replies: 16
    Last Post: 04-16-2016, 04:35 PM
  6. Highlight a date every time it occurs in a spreadsheet when opened
    By kittycrickett in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-02-2015, 01:20 AM
  7. I would like in a project plan add text to highlight cells
    By larvidss in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-26-2013, 06:06 AM

Tags for this Thread

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