+ Reply to Thread
Results 1 to 5 of 5

Conditional formatting using now() function Excel 2003

  1. #1
    Forum Contributor
    Join Date
    11-03-2012
    Location
    Nottingham, UK
    MS-Off Ver
    Office 365
    Posts
    127

    Conditional formatting using now() function Excel 2003

    Hi all,
    I have a simple bus timetable and I wish to conditionally format all the cells based on the system time. Ideally, any cell that contains a value that is greater than or equal to the current time, and less than or equal to the current time plus 1 hour needs to be formatted differently to the rest. (i.e. only buses due in the next hour will be formatted). I have enclosed a sample if neccessary - the current time is in cell A1. Thank you.
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional formatting using now() function Excel 2003

    Change the formula in A1 to
    =MOD(NOW(),1)
    This makes it a time only value, instead of Date+Time.

    Then select A3:AV76 and use "Formula Is" in conditional formatting
    =AND(A3>=$A$1,A3<=$A$1+"01:00:00")

  3. #3
    Forum Contributor
    Join Date
    11-03-2012
    Location
    Nottingham, UK
    MS-Off Ver
    Office 365
    Posts
    127

    Re: Conditional formatting using now() function Excel 2003

    Thanks Jonmo1 - I'll try it now and let you know if it works in about half hour. I'm sure it will

  4. #4
    Forum Contributor
    Join Date
    11-03-2012
    Location
    Nottingham, UK
    MS-Off Ver
    Office 365
    Posts
    127

    Re: Conditional formatting using now() function Excel 2003

    Yep - that's exactly what I wanted. thanks very much again Jonmo1.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional formatting using now() function Excel 2003

    You're welcome.

+ 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 using excel 2003
    By kthom019 in forum Excel General
    Replies: 4
    Last Post: 11-04-2012, 03:33 PM
  2. Conditional formatting in Excel 2003
    By kisboros in forum Excel General
    Replies: 5
    Last Post: 02-21-2012, 06:01 PM
  3. Conditional Formatting in Excel 2003
    By kjmadden in forum Excel General
    Replies: 3
    Last Post: 11-12-2009, 09:19 AM
  4. Excel 2003- Conditional Formatting
    By samced in forum Excel General
    Replies: 1
    Last Post: 10-14-2009, 12:24 PM
  5. Excel 2003 - Conditional Formatting
    By jre1229 in forum Excel General
    Replies: 12
    Last Post: 06-19-2008, 04:08 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