PC Review


Reply
Thread Tools Rate Thread

Conditional formatting - coloured text

 
 
Jennie
Guest
Posts: n/a
 
      19th Jun 2008
Hello,

I'm wondering if it's possible to change the font colour of a range of cells
depending on whether a different range of cells contain red text?

For example cells U1:IU1 contain dates which turn the text red when they
meet a ceratin condition.
I want the data in the cells below this row (U2:IU197) to also change to red
text if the top row is red.

So basically if U30 contains red text I want the whole of column U30 to turn
to red text. Can this be done? If so how?

Any help would be very much appreciated as I've been struggling for a
while!!

Thank you in advance
 
Reply With Quote
 
 
 
 
Pete_UK
Guest
Posts: n/a
 
      19th Jun 2008
You need to apply the same conditional formatting criteria that you
have in row 1 to the rows below. You may need to use Formula Is rather
than Cell Value Is in the first box of the DF dialogue. You can
highlight the range and enter the criteria once, rather than do it for
every cell individually.

If you are still uncertain, post back with details of your current CF
criteria.

Hope this helps.

Pete

On Jun 19, 2:33*pm, Jennie <Jen...@discussions.microsoft.com> wrote:
> Hello,
>
> I'm wondering if it's possible to change the font colour of a range of cells
> depending on whether a different range of cells contain red text?
>
> For example cells U1:IU1 contain dates which turn the text red when they
> meet a ceratin condition.
> I want the data in the cells below this row (U2:IU197) to also change to red
> text if the top row is red.
>
> So basically if U30 contains red text I want the whole of column U30 to turn
> to red text. Can this be done? If so how?
>
> Any help would be very much appreciated as I've been struggling for a
> while!!
>
> Thank you in advance


 
Reply With Quote
 
Jennie
Guest
Posts: n/a
 
      19th Jun 2008
Thanks for the speedy response Pete!

I've tried this but it doesn't work. I think it might be becasue the top row
has dates in it and the other cells just have 1 digit figures.

The CF for the top row is

If cell value is greater than or equal to =$g$1 then
condition.....
G1 is TODAY-365

Perhaps my initial way of working out what I want is better.....

I basically need a formula to count the non blank cells within a rolling
year. - The dates
are in the top row, (U1:IU1) and the days/occassions sick are in the rows
below (U2:IU2, U3:IU3 and so on)

My initial formula: =SUMIF(($S$1:$IV$1>=TODAY()-365)*S2:IV2) adds up
all the figures (total days sick) correctly within the rolling 12 months,
but I also need to count the non blank cells (occasions) for the same
condition. i.e if someone has been off sick for 4 days in one week I want
excel to count this as 1 rather than 4.
I thought that changing 'SUMIF' to 'COUNTIF' would work, but it doesn't -
hense the diffrent strategy!

I've tried loads of different things but nothing seems to work. I'm well and
truely stuck!!!

Jennie

"Pete_UK" wrote:

> You need to apply the same conditional formatting criteria that you
> have in row 1 to the rows below. You may need to use Formula Is rather
> than Cell Value Is in the first box of the DF dialogue. You can
> highlight the range and enter the criteria once, rather than do it for
> every cell individually.
>
> If you are still uncertain, post back with details of your current CF
> criteria.
>
> Hope this helps.
>
> Pete
>
> On Jun 19, 2:33 pm, Jennie <Jen...@discussions.microsoft.com> wrote:
> > Hello,
> >
> > I'm wondering if it's possible to change the font colour of a range of cells
> > depending on whether a different range of cells contain red text?
> >
> > For example cells U1:IU1 contain dates which turn the text red when they
> > meet a certain condition.
> > I want the data in the cells below this row (U2:IU197) to also change to red
> > text if the top row is red.
> >
> > So basically if U30 contains red text I want the whole of column U30 to turn
> > to red text. Can this be done? If so how?
> >
> > Any help would be very much appreciated as I've been struggling for a
> > while!!
> >
> > Thank you in advance

>
>

 
Reply With Quote
 
Pete_UK
Guest
Posts: n/a
 
      19th Jun 2008
Select all the cells in the range U2:IU197, with U2 as the first cell
that you select (it won't be highlighted like the others). Then click
on Format | Conditional Formatting and in the first box choose Formula
Is rather than Cell Value Is. In the formula box you should enter:

=U$1>=$G$1

then click the Format button and choose Red from the Colour box. Click
OK twice, and you should have what you want, as Excel will
automaticlly adjust that formula to suit all the cells in the range.

Hope this helps.

Pete

On Jun 19, 4:40*pm, Jennie <Jen...@discussions.microsoft.com> wrote:
> Thanks for the speedy response Pete!
>
> I've tried this but it doesn't work. I think it might be becasue the top row
> has dates in it and the other cells just have 1 digit figures.
>
> The CF for the top row is
>
> If cell value is greater than or equal to =$g$1 * * * * * *then
> condition.....
> G1 is TODAY-365
>
> Perhaps my initial way of working out what I want is better.....
>
> I basically need a formula to count the non blank cells within a rolling
> year. - The dates
> are in the top row, (U1:IU1) and the days/occassions sick are in the rows
> below (U2:IU2, U3:IU3 and so on)
>
> My initial formula: =SUMIF(($S$1:$IV$1>=TODAY()-365)*S2:IV2) adds up
> all the figures (total days sick) correctly within the rolling 12 months,
> but I also need to count the non blank cells (occasions) for the same
> condition. i.e if someone has been off sick for 4 days in one week I want
> excel to count this as 1 rather than 4.
> I thought that changing 'SUMIF' to 'COUNTIF' would work, but it doesn't -
> hense the diffrent strategy!
>
> I've tried loads of different things but nothing seems to work. I'm well and
> truely stuck!!!
>
> Jennie
>
>
>
> "Pete_UK" wrote:
> > You need to apply the same conditional formatting criteria that you
> > have in row 1 to the rows below. You may need to use Formula Is rather
> > than Cell Value Is in the first box of the DF dialogue. You can
> > highlight the range and enter the criteria once, rather than do it for
> > every cell individually.

>
> > If you are still uncertain, post back with details of your current CF
> > criteria.

>
> > Hope this helps.

>
> > Pete

>
> > On Jun 19, 2:33 pm, Jennie <Jen...@discussions.microsoft.com> wrote:
> > > Hello,

>
> > > I'm wondering if it's possible to change the font colour of a range of cells
> > > depending on whether a different range of cells contain red text?

>
> > > For example cells U1:IU1 contain dates which turn the text red when they
> > > meet a certain condition.
> > > I want the data in the cells below this row (U2:IU197) to also changeto red
> > > text if the top row is red.

>
> > > So basically if U30 contains red text I want the whole of column U30 to turn
> > > to red text. Can this be done? If so how?

>
> > > Any help would be very much appreciated as I've been struggling for a
> > > while!!

>
> > > Thank you in advance- Hide quoted text -

>
> - Show quoted text -


 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      19th Jun 2008
Hi,
Please post the criteria you used in the CF in cells U1:IU1
Regards - Dave.
 
Reply With Quote
 
Jennie
Guest
Posts: n/a
 
      20th Jun 2008
Hi Dave,

The CF in cells U1:IU1 is
Formula Is =U1>=TODAY()-365

Jennie

"Dave" wrote:

> Hi,
> Please post the criteria you used in the CF in cells U1:IU1
> Regards - Dave.

 
Reply With Quote
 
Jennie
Guest
Posts: n/a
 
      20th Jun 2008
I've tried this but for some reason excel isn't automatically adjusting the
formula to suit the other cells. It's keeping 'U1' throughout and therefore
isn't working. I've tried it without '$' but with no success - again it keeps
'U1' in the formula.

Do you have any other suggestions? I really appreciate your time and help.

Jennie

"Pete_UK" wrote:

> Select all the cells in the range U2:IU197, with U2 as the first cell
> that you select (it won't be highlighted like the others). Then click
> on Format | Conditional Formatting and in the first box choose Formula
> Is rather than Cell Value Is. In the formula box you should enter:
>
> =U$1>=$G$1
>
> then click the Format button and choose Red from the Colour box. Click
> OK twice, and you should have what you want, as Excel will
> automaticlly adjust that formula to suit all the cells in the range.
>
> Hope this helps.
>
> Pete
>
> On Jun 19, 4:40 pm, Jennie <Jen...@discussions.microsoft.com> wrote:
> > Thanks for the speedy response Pete!
> >
> > I've tried this but it doesn't work. I think it might be becasue the top row
> > has dates in it and the other cells just have 1 digit figures.
> >
> > The CF for the top row is
> >
> > If cell value is greater than or equal to =$g$1 then
> > condition.....
> > G1 is TODAY-365
> >
> > Perhaps my initial way of working out what I want is better.....
> >
> > I basically need a formula to count the non blank cells within a rolling
> > year. - The dates
> > are in the top row, (U1:IU1) and the days/occassions sick are in the rows
> > below (U2:IU2, U3:IU3 and so on)
> >
> > My initial formula: =SUMIF(($S$1:$IV$1>=TODAY()-365)*S2:IV2) adds up
> > all the figures (total days sick) correctly within the rolling 12 months,
> > but I also need to count the non blank cells (occasions) for the same
> > condition. i.e if someone has been off sick for 4 days in one week I want
> > excel to count this as 1 rather than 4.
> > I thought that changing 'SUMIF' to 'COUNTIF' would work, but it doesn't -
> > hense the diffrent strategy!
> >
> > I've tried loads of different things but nothing seems to work. I'm well and
> > truely stuck!!!
> >
> > Jennie
> >
> >
> >
> > "Pete_UK" wrote:
> > > You need to apply the same conditional formatting criteria that you
> > > have in row 1 to the rows below. You may need to use Formula Is rather
> > > than Cell Value Is in the first box of the DF dialogue. You can
> > > highlight the range and enter the criteria once, rather than do it for
> > > every cell individually.

> >
> > > If you are still uncertain, post back with details of your current CF
> > > criteria.

> >
> > > Hope this helps.

> >
> > > Pete

> >
> > > On Jun 19, 2:33 pm, Jennie <Jen...@discussions.microsoft.com> wrote:
> > > > Hello,

> >
> > > > I'm wondering if it's possible to change the font colour of a range of cells
> > > > depending on whether a different range of cells contain red text?

> >
> > > > For example cells U1:IU1 contain dates which turn the text red when they
> > > > meet a certain condition.
> > > > I want the data in the cells below this row (U2:IU197) to also change to red
> > > > text if the top row is red.

> >
> > > > So basically if U30 contains red text I want the whole of column U30 to turn
> > > > to red text. Can this be done? If so how?

> >
> > > > Any help would be very much appreciated as I've been struggling for a
> > > > while!!

> >
> > > > Thank you in advance- Hide quoted text -

> >
> > - Show quoted text -

>
>

 
Reply With Quote
 
Dave
Guest
Posts: n/a
 
      20th Jun 2008
Hi,
Not sure if you'll have any more success than you're having with Pete's
suggestions, but here goes:
Select all cells in the range U2:IU197. Make sure you start the selection in
cell U2. When all cells are selected, U2 should be the only one that looks
different.
With all that selected, open the CF window, select formula is, and enter:
=U$1>=TODAY()-365
Select the CF's you want.
OK.

I've tested this here, so it should work...

Regards - Dave.
 
Reply With Quote
 
Jennie
Guest
Posts: n/a
 
      20th Jun 2008
Yippeee!! It's now working! Thank you so much. I'm not sure what was wrong
with it before as I had tried this previously. In the end I deleted all the
CF's and re-did them. That seemed to do the trick.

Would it be possible for me to now count and sum the cells containing red
text?

Thank you to you and Pete for your time and assistance. You've saved me a
lot of trial and error time!

"Dave" wrote:

> Hi,
> Not sure if you'll have any more success than you're having with Pete's
> suggestions, but here goes:
> Select all cells in the range U2:IU197. Make sure you start the selection in
> cell U2. When all cells are selected, U2 should be the only one that looks
> different.
> With all that selected, open the CF window, select formula is, and enter:
> =U$1>=TODAY()-365
> Select the CF's you want.
> OK.
>
> I've tested this here, so it should work...
>
> Regards - Dave.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Formatting Coloured Text L. Howard Kittle Microsoft Excel Discussion 1 21st Oct 2009 04:48 PM
Conditional Formatting of text effecting formatting of background =?Utf-8?B?SEFI?= Microsoft Access Reports 6 25th Mar 2008 06:23 PM
Conditional Formatting based on text within a cell w/ text AND num =?Utf-8?B?U2hpcmxleQ==?= Microsoft Excel Worksheet Functions 2 22nd Dec 2006 01:40 AM
Change conditional formatting to coloured alternate rows dependent on a change in date? StargateFan Microsoft Excel Programming 4 2nd Aug 2006 11:28 AM
Conditional Formatting based on Text within Text =?Utf-8?B?R2VvcmdlIEx5bmNo?= Microsoft Excel Misc 3 5th May 2005 07:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:35 AM.