Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default How do I highlight a row in Excel based on the current time?

I am building a multi-day TV schedule. Half-hours are listed in column A. I
would like to background-fill (highlight) the row corresponding to the
current half hour.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,441
Default How do I highlight a row in Excel based on the current time?

Mistress,

Use Conditional formatting, with the formula is option, and a formula like this:

=AND($A2<=NOW(),($A2+(0.5/24))=NOW())

This assumes that the times in A are actually date and times: 12/3/2008 9:00:00 AM

Select all the cells that you want highlighted, with A2 as the active cell, and apply the CF. If
the active cell is somthing other than A2, then update the formula to reflect that. Select your
color, and it will show the current half hour.

HTH,
Bernie
MS Excel MVP


"Mistress" wrote in message
...
I am building a multi-day TV schedule. Half-hours are listed in column A. I
would like to background-fill (highlight) the row corresponding to the
current half hour.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,346
Default How do I highlight a row in Excel based on the current time?


To conditionally format your cell(s):

In 2003:
1. Select the cells you want to format
2. Choose Format, Conditional Formatting
3. Choose Formula is from the first drop down
4. In the second box enter the formula:
=AND(MOD(NOW(),1)=$A1,MOD(NOW(),1)<$A2)
5. Click the Format button
6. Choose a color on the Patterns tab (or any available option)
7. Click OK twice.

In 2007:
1. Highlight all the cells on the rows you want formatted
2. Choose Home, Conditional Formatting, New Rule
3. Choose Use a formula to determine which cell to format
4. In the Format values where this formula is true enter the following
formula:
=AND(MOD(NOW(),1)=$A1,MOD(NOW(),1)<$A2)
5. Click the Format button and choose a format.
6. Click OK twice

If this helps, please click the Yes button.

Cheers,
Shane DevenshireHi,

The answer depends on how you entered the times - strictly as times or as
date/time. Let's assume times



"Mistress" wrote:

I am building a multi-day TV schedule. Half-hours are listed in column A. I
would like to background-fill (highlight) the row corresponding to the
current half hour.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enter text automatically based on current time jmj713 Excel Discussion (Misc queries) 3 September 7th 07 04:18 PM
Having the current time inserted w/o updating the current time sherobot Excel Worksheet Functions 2 October 2nd 06 05:05 PM
shade a row based on the current time Lorri Excel Discussion (Misc queries) 1 July 22nd 06 03:14 AM
excel should highlight current line (row)-easier for large spread viv Excel Discussion (Misc queries) 1 July 13th 06 11:12 PM
Can I automatically enter the current date or current time into a Ben New Users to Excel 7 October 19th 05 03:38 PM


All times are GMT +1. The time now is 07:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"