Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Conditional Formatting with Time

In one row I have 24 cells, each cell representing 1 hour. I would like a
cell to change color, say from white to yellow, during the hour it
represents on the clock. I have tried conditional formatting with =HOUR,
Now() and =TIME without success.

I would greatly appreciate any assistance in solving this problem.

Colin

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional Formatting with Time

It's always useful if you tell us what's in your cells, what CF condition
you are trying to use, what result you're getting, and what result you
expected.

If you have times at 1 hour intervals, what's wrong with, CF/ Formula Is:
=HOUR(A1)=HOUR(NOW()) ?
--
David Biddulph

"Colin" wrote in message
...
In one row I have 24 cells, each cell representing 1 hour. I would like a
cell to change color, say from white to yellow, during the hour it
represents on the clock. I have tried conditional formatting with =HOUR,
Now() and =TIME without success.

I would greatly appreciate any assistance in solving this problem.

Colin



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Conditional Formatting with Time

Another option is / Cell value is:
=TIME(HOUR(NOW()),,)
--
David Biddulph

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
It's always useful if you tell us what's in your cells, what CF condition
you are trying to use, what result you're getting, and what result you
expected.

If you have times at 1 hour intervals, what's wrong with, CF/ Formula Is:
=HOUR(A1)=HOUR(NOW()) ?
--
David Biddulph

"Colin" wrote in message
...
In one row I have 24 cells, each cell representing 1 hour. I would like
a cell to change color, say from white to yellow, during the hour it
represents on the clock. I have tried conditional formatting with =HOUR,
Now() and =TIME without success.

I would greatly appreciate any assistance in solving this problem.

Colin





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Conditional Formatting with Time

1. Select the cell/Range (say A1:X1). Please note that the cell reference A1
mentioned in the formula is the active cell in the selection. Active cell
will have a white background even after selection
2. From menu FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula
'if values from A1 to X1 are entered as 1,2,3,....24 then
=A1=VALUE(TEXT(NOW(),"hh"))

OR if values are entered in time format 1:00 AM, 2:00 AM etc; then try
=TEXT(A1,"hh")=TEXT(NOW(),"hh")

4. Click Format ButtonPattern and select your color (say Red)
5. Hit OK

PS: If you are using XL2007 Goto Home tabStylesConditional
FormattingManage rulesNew ruleUse a formula to determine which cells to
format. Enter the formula in the box below.

If this post helps click Yes
---------------
Jacob Skaria


"Colin" wrote:

In one row I have 24 cells, each cell representing 1 hour. I would like a
cell to change color, say from white to yellow, during the hour it
represents on the clock. I have tried conditional formatting with =HOUR,
Now() and =TIME without success.

I would greatly appreciate any assistance in solving this problem.

Colin

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Conditional Formatting with Time

Sorry for lack of detail. In my SS cells B17 to Y17 are number 0 to 23,
representing 24 hours. Directly below each row 17 cell is a blank/empty
cell. During the period midnight to 1am I would like only cell B18 to have
a yellow fill, then during the period 1am to 2 am I would like only cell C18
to have a yellow fill and so on for the full 24 hours after which the
colored cell returns to the beginning and starts the process again.

Colin

"Colin" wrote in message
...
In one row I have 24 cells, each cell representing 1 hour. I would like a
cell to change color, say from white to yellow, during the hour it
represents on the clock. I have tried conditional formatting with =HOUR,
Now() and =TIME without success.

I would greatly appreciate any assistance in solving this problem.

Colin




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Conditional Formatting with Time

Try a CF of:
=B$17=hour(now())

Regards,
Fred.

"Colin" wrote in message
...
Sorry for lack of detail. In my SS cells B17 to Y17 are number 0 to 23,
representing 24 hours. Directly below each row 17 cell is a blank/empty
cell. During the period midnight to 1am I would like only cell B18 to
have a yellow fill, then during the period 1am to 2 am I would like only
cell C18 to have a yellow fill and so on for the full 24 hours after which
the colored cell returns to the beginning and starts the process again.

Colin

"Colin" wrote in message
...
In one row I have 24 cells, each cell representing 1 hour. I would like
a cell to change color, say from white to yellow, during the hour it
represents on the clock. I have tried conditional formatting with =HOUR,
Now() and =TIME without success.

I would greatly appreciate any assistance in solving this problem.

Colin



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Conditional Formatting with Time

1. Select the cell/Range (say B18:X18). Please note that the active cell in
the selection should be B18. Active cell will have a white background even
after selection
2. From menu FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula
=B17=HOUR(NOW())

4. Click Format ButtonPattern and select your color (say Red)
5. Hit OK

If this post helps click Yes
---------------
Jacob Skaria


"Colin" wrote:

Sorry for lack of detail. In my SS cells B17 to Y17 are number 0 to 23,
representing 24 hours. Directly below each row 17 cell is a blank/empty
cell. During the period midnight to 1am I would like only cell B18 to have
a yellow fill, then during the period 1am to 2 am I would like only cell C18
to have a yellow fill and so on for the full 24 hours after which the
colored cell returns to the beginning and starts the process again.

Colin

"Colin" wrote in message
...
In one row I have 24 cells, each cell representing 1 hour. I would like a
cell to change color, say from white to yellow, during the hour it
represents on the clock. I have tried conditional formatting with =HOUR,
Now() and =TIME without success.

I would greatly appreciate any assistance in solving this problem.

Colin


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
HELP with conditional formatting and a max time YS1107 Excel Worksheet Functions 2 June 15th 09 03:47 AM
conditional formatting time Dgwood90 Excel Discussion (Misc queries) 7 December 31st 08 04:39 AM
Conditional formatting and time mndpy Excel Worksheet Functions 1 September 4th 07 07:46 PM
conditional formatting using clock time Merna Excel Worksheet Functions 5 March 1st 07 08:01 PM
conditional formatting & time stamp Alib Excel Discussion (Misc queries) 2 December 29th 05 08:07 PM


All times are GMT +1. The time now is 06:29 PM.

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

About Us

"It's about Microsoft Excel"