Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Dom Dom is offline
external usenet poster
 
Posts: 46
Default Conditional Formatting with Date and time

Hi,
I'm trying to get the cell colour to change depending on the time difference
between two times. In cell F i have the date and time i recieved a report and
in cell G the date and time i chased the jobs on the report in cell H is the
difference between the two and if this is under one hour i want it to be
green and if over one hour to be red. The difference is displayed in
dd:hh:mm. Can anyone help i've tried several formulas but can't seem to get
it to work. Any help would be appreciated. Thank you
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Conditional Formatting with Date and time

=H1TIME(1,0,0)

=H1<=TIME(1,0,0)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Dom" wrote in message
...
Hi,
I'm trying to get the cell colour to change depending on the time
difference
between two times. In cell F i have the date and time i recieved a report
and
in cell G the date and time i chased the jobs on the report in cell H is
the
difference between the two and if this is under one hour i want it to be
green and if over one hour to be red. The difference is displayed in
dd:hh:mm. Can anyone help i've tried several formulas but can't seem to
get
it to work. Any help would be appreciated. Thank you



  #3   Report Post  
Posted to microsoft.public.excel.misc
Dom Dom is offline
external usenet poster
 
Posts: 46
Default Conditional Formatting with Date and time

Hi, thanks for getting back to me. I've tried putting those in and it changes
the cell to green but doesn't change to red when the cell is over one hour
any ideas?

"Bob Phillips" wrote:

=H1TIME(1,0,0)

=H1<=TIME(1,0,0)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Dom" wrote in message
...
Hi,
I'm trying to get the cell colour to change depending on the time
difference
between two times. In cell F i have the date and time i recieved a report
and
in cell G the date and time i chased the jobs on the report in cell H is
the
difference between the two and if this is under one hour i want it to be
green and if over one hour to be red. The difference is displayed in
dd:hh:mm. Can anyone help i've tried several formulas but can't seem to
get
it to work. Any help would be appreciated. Thank you




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Conditional Formatting with Date and time

Since H1 will be either or < TIME(1,0,0), there's no need for both
formulas. Format the cells Green, then use one condition:

CF1: Formula is =H1TIME(1,0,0)
Format: <pattern/<red

If that doesn't work, what formula are you using to populate H1?




In article ,
Dom wrote:

Hi, thanks for getting back to me. I've tried putting those in and it changes
the cell to green but doesn't change to red when the cell is over one hour
any ideas?

"Bob Phillips" wrote:

=H1TIME(1,0,0)

=H1<=TIME(1,0,0)

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default Conditional Formatting with Date and time

you have to set different format pattern colours with each formula.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Dom" wrote in message
...
Hi, thanks for getting back to me. I've tried putting those in and it
changes
the cell to green but doesn't change to red when the cell is over one hour
any ideas?

"Bob Phillips" wrote:

=H1TIME(1,0,0)

=H1<=TIME(1,0,0)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Dom" wrote in message
...
Hi,
I'm trying to get the cell colour to change depending on the time
difference
between two times. In cell F i have the date and time i recieved a
report
and
in cell G the date and time i chased the jobs on the report in cell H
is
the
difference between the two and if this is under one hour i want it to
be
green and if over one hour to be red. The difference is displayed in
dd:hh:mm. Can anyone help i've tried several formulas but can't seem to
get
it to work. Any help would be appreciated. Thank you








  #6   Report Post  
Posted to microsoft.public.excel.misc
Dom Dom is offline
external usenet poster
 
Posts: 46
Default Conditional Formatting with Date and time

I did try setting a different colour for the two different formulas

CF1 was =H1TIME(1,0,0) set to green
and
CF2 was =H1<=TIME(1,0,0) set to red

But just always came up as green. To populate H1 i'm using the formula
=TEXT(G2-F2,"dd:hh:mm")

I tried altering the time to over a hour but cell just stayed green

When i tried formatting the cells to green and and just using the one CF
CF1 =H1TIME(1,0,0) and set to red (i changed H1 to H2 because the title of
the column is in H1 but niether worked)

the cell turned red even though it was less than 1 hour. Any ideas of what
is going wrong?

"Bob Phillips" wrote:

you have to set different format pattern colours with each formula.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Dom" wrote in message
...
Hi, thanks for getting back to me. I've tried putting those in and it
changes
the cell to green but doesn't change to red when the cell is over one hour
any ideas?

"Bob Phillips" wrote:

=H1TIME(1,0,0)

=H1<=TIME(1,0,0)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Dom" wrote in message
...
Hi,
I'm trying to get the cell colour to change depending on the time
difference
between two times. In cell F i have the date and time i recieved a
report
and
in cell G the date and time i chased the jobs on the report in cell H
is
the
difference between the two and if this is under one hour i want it to
be
green and if over one hour to be red. The difference is displayed in
dd:hh:mm. Can anyone help i've tried several formulas but can't seem to
get
it to work. Any help would be appreciated. Thank you






  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Conditional Formatting with Date and time

Ah, text!

Change the formulae to

=--H1TIME(1,0,0)
=--H1<=TIME(1,0,0)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Dom" wrote in message
...
I did try setting a different colour for the two different formulas

CF1 was =H1TIME(1,0,0) set to green
and
CF2 was =H1<=TIME(1,0,0) set to red

But just always came up as green. To populate H1 i'm using the formula
=TEXT(G2-F2,"dd:hh:mm")

I tried altering the time to over a hour but cell just stayed green

When i tried formatting the cells to green and and just using the one CF
CF1 =H1TIME(1,0,0) and set to red (i changed H1 to H2 because the title
of
the column is in H1 but niether worked)

the cell turned red even though it was less than 1 hour. Any ideas of what
is going wrong?

"Bob Phillips" wrote:

you have to set different format pattern colours with each formula.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Dom" wrote in message
...
Hi, thanks for getting back to me. I've tried putting those in and it
changes
the cell to green but doesn't change to red when the cell is over one
hour
any ideas?

"Bob Phillips" wrote:

=H1TIME(1,0,0)

=H1<=TIME(1,0,0)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Dom" wrote in message
...
Hi,
I'm trying to get the cell colour to change depending on the time
difference
between two times. In cell F i have the date and time i recieved a
report
and
in cell G the date and time i chased the jobs on the report in cell
H
is
the
difference between the two and if this is under one hour i want it
to
be
green and if over one hour to be red. The difference is displayed in
dd:hh:mm. Can anyone help i've tried several formulas but can't seem
to
get
it to work. Any help would be appreciated. Thank you








  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Conditional Formatting with Date and time

The reason you're not seeing red is that the TEXT() function converted
the time difference to text, so it no longer is evaluated as a number.

Instead of using the TEXT() function, why not use

=G2-F2

and format the cell as "dd:hh:mm"

(Note that this format only works for days <=31, since dd is day of the
month, which defaults to January).

In article ,
Dom wrote:

I did try setting a different colour for the two different formulas

CF1 was =H1TIME(1,0,0) set to green
and
CF2 was =H1<=TIME(1,0,0) set to red

But just always came up as green. To populate H1 i'm using the formula
=TEXT(G2-F2,"dd:hh:mm")

I tried altering the time to over a hour but cell just stayed green

When i tried formatting the cells to green and and just using the one CF
CF1 =H1TIME(1,0,0) and set to red (i changed H1 to H2 because the title of
the column is in H1 but niether worked)

the cell turned red even though it was less than 1 hour. Any ideas of what
is going wrong?

"Bob Phillips" wrote:

you have to set different format pattern colours with each formula.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Dom" wrote in message
...
Hi, thanks for getting back to me. I've tried putting those in and it
changes
the cell to green but doesn't change to red when the cell is over one hour
any ideas?

"Bob Phillips" wrote:

=H1TIME(1,0,0)

=H1<=TIME(1,0,0)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Dom" wrote in message
...
Hi,
I'm trying to get the cell colour to change depending on the time
difference
between two times. In cell F i have the date and time i recieved a
report
and
in cell G the date and time i chased the jobs on the report in cell H
is
the
difference between the two and if this is under one hour i want it to
be
green and if over one hour to be red. The difference is displayed in
dd:hh:mm. Can anyone help i've tried several formulas but can't seem to
get
it to work. Any help would be appreciated. Thank you






  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default Conditional Formatting with Date and time

Your problem is that you are trying to compare text with time. Try H1
=G2-F2 and just format as dd:hh:mm.
--
David Biddulph

"Dom" wrote in message
...
I did try setting a different colour for the two different formulas

CF1 was =H1TIME(1,0,0) set to green
and
CF2 was =H1<=TIME(1,0,0) set to red

But just always came up as green. To populate H1 i'm using the formula
=TEXT(G2-F2,"dd:hh:mm")

I tried altering the time to over a hour but cell just stayed green

When i tried formatting the cells to green and and just using the one CF
CF1 =H1TIME(1,0,0) and set to red (i changed H1 to H2 because the title
of
the column is in H1 but niether worked)

the cell turned red even though it was less than 1 hour. Any ideas of what
is going wrong?

"Bob Phillips" wrote:

you have to set different format pattern colours with each formula.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Dom" wrote in message
...
Hi, thanks for getting back to me. I've tried putting those in and it
changes
the cell to green but doesn't change to red when the cell is over one
hour
any ideas?

"Bob Phillips" wrote:

=H1TIME(1,0,0)

=H1<=TIME(1,0,0)

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"Dom" wrote in message
...
Hi,
I'm trying to get the cell colour to change depending on the time
difference
between two times. In cell F i have the date and time i recieved a
report
and
in cell G the date and time i chased the jobs on the report in cell
H
is
the
difference between the two and if this is under one hour i want it
to
be
green and if over one hour to be red. The difference is displayed in
dd:hh:mm. Can anyone help i've tried several formulas but can't seem
to
get
it to work. Any help would be appreciated. Thank you








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
conditional formatting for cell date to equal today's date Sistereinstein Excel Worksheet Functions 2 September 10th 12 07:53 PM
conditional formatting date Derek Excel Worksheet Functions 3 October 11th 06 06:22 PM
Conditional Formatting Date Humpy New Users to Excel 4 February 25th 06 10:44 AM
conditional formatting & time stamp Alib Excel Discussion (Misc queries) 2 December 29th 05 08:07 PM
conditional formatting with time values Access Idiot Excel Discussion (Misc queries) 2 September 13th 05 03:29 PM


All times are GMT +1. The time now is 08:50 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"