+ Reply to Thread
Results 1 to 10 of 10

GoogleSheets: Nearest hour from time function (NOW)

  1. #1
    Registered User
    Join Date
    09-23-2022
    Location
    Poznan,Poland
    MS-Off Ver
    2019
    Posts
    6

    GoogleSheets: Nearest hour from time function (NOW)

    Hi. Can you help me how can i create a conditional formatting like this:

    time now -->03:59:02 04:07 04:03 04:03 04:03 04:03 04:03 04:03 05:03 07:03 09:03 11:03

    in A3 is time NOW, and in table I3:BA3 is most importatnt. In this lines the next approaching columns change color.

    when time now is 03:59:02 i want to conditional formatting and color the closest times ( in this example is 04:03)

    Can you tell me how can i do this conditional formatting? Thanks a lot

    (i have a link with this conditional formatting but i cant add this in thread, if someone want i cand sand this in PM).
    Attached Images Attached Images
    Last edited by bartekkmt2; 09-23-2022 at 10:30 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,602

    Re: Nearest hour from time function (NOW)

    Unfortunately, you posted a picture vs. a workbook. Are those 12 hr times are 24 hr times? I can't tell from the picture...
    Ben Van Johnson

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

    Re: Nearest hour from time function (NOW)

    Please add a sample sheet (see yellow banner at the top of the page).

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,602

    Re: Nearest hour from time function (NOW)

    12 hour clock:
    Please Login or Register  to view this content.
    24 hour clock
    Please Login or Register  to view this content.
    EDIT:
    Sorry, I didn't realize this was for google sheets
    Attached Files Attached Files
    Last edited by protonLeah; 09-24-2022 at 05:45 PM.

  5. #5
    Registered User
    Join Date
    09-23-2022
    Location
    Poznan,Poland
    MS-Off Ver
    2019
    Posts
    6

    Re: Nearest hour from time function (NOW)

    Thanks everyone for answers. I have only link to googlesheets with this conditional formatting. I send you link in private message. It's 24h times. I don't have permision to edit this sheet so i don't know that is a conditional formatting with this colors.

    Sorry for my english, maybe you you didn't understand what i want to do. Please check your PM and look at I3:BA3

    Thanks a lot for help

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,460

    Re: Nearest hour from time function (NOW)

    You can post the link to the GoogleSheet if you add one or two spaces to the URL.

    You will not be able to send files via PM. Keep everything here, please.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    09-23-2022
    Location
    Poznan,Poland
    MS-Off Ver
    2019
    Posts
    6

    Re: Nearest hour from time function (NOW)

    Thank you so much AliGW for information how can i add a link.

    This is a google sheet with this conditional formatting:

    https://docs.google.com/spreadsheets...#gid=894096802

    Please look at I3:BA3 and A3 is function "=NOW()"
    Last edited by AliGW; 09-24-2022 at 12:00 PM. Reason: URL fixed.

  8. #8
    Registered User
    Join Date
    09-23-2022
    Location
    Poznan,Poland
    MS-Off Ver
    2019
    Posts
    6

    Re: GoogleSheets: Nearest hour from time function (NOW)

    refresh, please check my last post with link to google sheets. Regards

  9. #9
    Registered User
    Join Date
    09-23-2022
    Location
    Poznan,Poland
    MS-Off Ver
    2019
    Posts
    6

    Re: GoogleSheets: Nearest hour from time function (NOW)

    refresh :/

  10. #10
    Registered User
    Join Date
    09-23-2022
    Location
    Poznan,Poland
    MS-Off Ver
    2019
    Posts
    6

    Re: GoogleSheets: Nearest hour from time function (NOW)

    refresh refresh

+ 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. Rounding time to nearest Hour
    By SierraRose in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12: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