+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting - marking the current time on a spreadsheet

  1. #1
    Registered User
    Join Date
    02-09-2018
    Location
    London, Englandd
    MS-Off Ver
    2010
    Posts
    12

    Exclamation Conditional Formatting - marking the current time on a spreadsheet

    Hi There,

    I am stuck with a problem! I have a schedule over the course of the day from 04:30 - 01:45 (next day). Time is going in 15 min blocks i.e. 10:00; 10:15; 10:30; 11:00....etc.

    I would like a single red line to automatically move along the appropriate cell as the day goes along. I have manually created what it is roughly that I want, with cell B5 showing the current time using the =NOW() formula. Please see image below.

    There is a formula that does one for days of the week (not time/minutes) with the formula (assuming cell D4 is the first cell of the days)
    =IF(D$4=TODAY(), TRUE, FALSE)
    This works perfectly - I can format for there to be just one single red line and the line goes far down the spreadsheet - up until where I had highlighted.

    But I want this line to be moving every 15 minutes. Not even hourly.

    When I tried this formula:
    =HOUR(A2)=HOUR(NOW())
    this was close, but it showed 3 red lines (for each 15 min cell) as it was covering over the course of the hour, understandably. Also, the red line would only cover the height of the single time cell - I wanted the line to extend downwards (like in the attached image).

    Is there a formula I can use that will mark one long line for every 15 minutes?
    Conditional Formatting 15 MINS.JPG
    Thank you!

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting - marking the current time on a spreadsheet

    1. Select the range you want to affect (D5:T15 in your picture)
    2. Click Conditional FormattingNew RuleUse a formula to determine which cells to format
    3. Enter this in the formula box:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    4. Click the Format button, select the Border tab and choose a red line on the left of the cell
    5. Click OK twice.


    The formula assumes that your times in row 5 are just times, not date+time formatted as time. If they are date+times, calculated on today (for each day), then use this instead:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hope that helps.
    Last edited by Aardigspook; 02-09-2018 at 08:47 AM.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    02-09-2018
    Location
    London, Englandd
    MS-Off Ver
    2010
    Posts
    12

    Re: Conditional Formatting - marking the current time on a spreadsheet

    Incredible!

    Thank you so much!

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting - marking the current time on a spreadsheet

    You're welcome.

    If that takes care of your original question, please mark the thread as Solved so others know there's an answer here (see instructions in my sig). Thanks.

    Edit: thanks for the rep and for marking the thread Solved.
    Last edited by Aardigspook; 02-17-2018 at 07:51 AM.

  5. #5
    Registered User
    Join Date
    08-07-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Conditional Formatting - marking the current time on a spreadsheet

    I had the same problem but transposed and highlighted. This worked perfectly.

    Thank you!

+ 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] Conditional formatting of a column for the current month
    By worthmw in forum Excel General
    Replies: 2
    Last Post: 10-13-2017, 07:31 PM
  2. Conditional Format from current time
    By possley in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-04-2014, 03:49 PM
  3. Replies: 1
    Last Post: 09-18-2014, 05:01 PM
  4. Conditional Formatting Using Current Date
    By ZiDanno in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-05-2014, 05:02 AM
  5. Conditional formatting if date is not current
    By mvassallo in forum Excel General
    Replies: 2
    Last Post: 02-07-2011, 12:19 PM
  6. rounding & formatting current time
    By them0use in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-28-2010, 12:23 AM
  7. Homework Marking Spreadsheet.
    By bogeyman in forum Excel General
    Replies: 0
    Last Post: 03-29-2009, 10:23 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