Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 389
Default Conditional Formatting - Row colour

Hello,

I am trying to get excel to highlight a row in 2 seperate colours if certain
conditions are met, for example.

A B C D E
1 0 0 0 Y 0
2 0 0 0 Y Y
3 0 0 0 0 0

I want it so that if a use a Y column D only for row to turn orange. If
There is a Y in column D and column E for row to turn green. And if no Y's in
D or E for no colour to be used.

So in example above row 1 would be orange, row 2 green and row 3 would have
no colour.

Can anyone help?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional Formatting - Row colour

Try this...

Select the range of cells. Assume this range is A1:E3
Goto the menu FormatConditional Formatting

Condition 1
Select the Formula Is option
Enter this formula in the box on the right:
=AND($D1="Y",$E1<"Y")
Click the Format button
Select the Patterns tab
Select a shade of ORANGE
OK

Click the Add button

Condition 2
Select the Formula Is option
Enter this formula in the box on the right:
=AND($D1:$E1="Y")
Click the Format button
Select the Patterns tab
Select a shade of GREEN
OK out

--
Biff
Microsoft Excel MVP


"Steven" wrote in message
...
Hello,

I am trying to get excel to highlight a row in 2 seperate colours if
certain
conditions are met, for example.

A B C D E
1 0 0 0 Y 0
2 0 0 0 Y Y
3 0 0 0 0 0

I want it so that if a use a Y column D only for row to turn orange. If
There is a Y in column D and column E for row to turn green. And if no Y's
in
D or E for no colour to be used.

So in example above row 1 would be orange, row 2 green and row 3 would
have
no colour.

Can anyone help?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 389
Default Conditional Formatting - Row colour

Sorry but this doesnt work, none of the rows change colour. Just a little for
information as well. I have around 700 rows that have information in and if
they meet the criteria I put in my original posting I want them to change
colour no matter what row number they are.

Thanks

"T. Valko" wrote:

Try this...

Select the range of cells. Assume this range is A1:E3
Goto the menu FormatConditional Formatting

Condition 1
Select the Formula Is option
Enter this formula in the box on the right:
=AND($D1="Y",$E1<"Y")
Click the Format button
Select the Patterns tab
Select a shade of ORANGE
OK

Click the Add button

Condition 2
Select the Formula Is option
Enter this formula in the box on the right:
=AND($D1:$E1="Y")
Click the Format button
Select the Patterns tab
Select a shade of GREEN
OK out

--
Biff
Microsoft Excel MVP


"Steven" wrote in message
...
Hello,

I am trying to get excel to highlight a row in 2 seperate colours if
certain
conditions are met, for example.

A B C D E
1 0 0 0 Y 0
2 0 0 0 Y Y
3 0 0 0 0 0

I want it so that if a use a Y column D only for row to turn orange. If
There is a Y in column D and column E for row to turn green. And if no Y's
in
D or E for no colour to be used.

So in example above row 1 would be orange, row 2 green and row 3 would
have
no colour.

Can anyone help?

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional Formatting - Row colour

Tell me the *exact* entire range of cells you want to format.

--
Biff
Microsoft Excel MVP


"Steven" wrote in message
...
Sorry but this doesnt work, none of the rows change colour. Just a little
for
information as well. I have around 700 rows that have information in and
if
they meet the criteria I put in my original posting I want them to change
colour no matter what row number they are.

Thanks

"T. Valko" wrote:

Try this...

Select the range of cells. Assume this range is A1:E3
Goto the menu FormatConditional Formatting

Condition 1
Select the Formula Is option
Enter this formula in the box on the right:
=AND($D1="Y",$E1<"Y")
Click the Format button
Select the Patterns tab
Select a shade of ORANGE
OK

Click the Add button

Condition 2
Select the Formula Is option
Enter this formula in the box on the right:
=AND($D1:$E1="Y")
Click the Format button
Select the Patterns tab
Select a shade of GREEN
OK out

--
Biff
Microsoft Excel MVP


"Steven" wrote in message
...
Hello,

I am trying to get excel to highlight a row in 2 seperate colours if
certain
conditions are met, for example.

A B C D E
1 0 0 0 Y 0
2 0 0 0 Y Y
3 0 0 0 0 0

I want it so that if a use a Y column D only for row to turn orange. If
There is a Y in column D and column E for row to turn green. And if no
Y's
in
D or E for no colour to be used.

So in example above row 1 would be orange, row 2 green and row 3 would
have
no colour.

Can anyone help?

Thanks






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 389
Default Conditional Formatting - Row colour

The range of the sheet is A4 to T4 all way down to A2004 to T2004.
To recap, if there is a Y in L4 i want the whole of row 4 to change to
orange. If there is a Y in L4 and P4 I wantthe whole of row 4 to turn green.
I want this to happen all way down, so if there is a Y in L100 row 100 would
turn orange and the there were Y's in L500 and P500 row 500 would turn green,
etc.

Thanks

"T. Valko" wrote:

Tell me the *exact* entire range of cells you want to format.

--
Biff
Microsoft Excel MVP


"Steven" wrote in message
...
Sorry but this doesnt work, none of the rows change colour. Just a little
for
information as well. I have around 700 rows that have information in and
if
they meet the criteria I put in my original posting I want them to change
colour no matter what row number they are.

Thanks

"T. Valko" wrote:

Try this...

Select the range of cells. Assume this range is A1:E3
Goto the menu FormatConditional Formatting

Condition 1
Select the Formula Is option
Enter this formula in the box on the right:
=AND($D1="Y",$E1<"Y")
Click the Format button
Select the Patterns tab
Select a shade of ORANGE
OK

Click the Add button

Condition 2
Select the Formula Is option
Enter this formula in the box on the right:
=AND($D1:$E1="Y")
Click the Format button
Select the Patterns tab
Select a shade of GREEN
OK out

--
Biff
Microsoft Excel MVP


"Steven" wrote in message
...
Hello,

I am trying to get excel to highlight a row in 2 seperate colours if
certain
conditions are met, for example.

A B C D E
1 0 0 0 Y 0
2 0 0 0 Y Y
3 0 0 0 0 0

I want it so that if a use a Y column D only for row to turn orange. If
There is a Y in column D and column E for row to turn green. And if no
Y's
in
D or E for no colour to be used.

So in example above row 1 would be orange, row 2 green and row 3 would
have
no colour.

Can anyone help?

Thanks








  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Conditional Formatting - Row colour

Ok, this is slightly different from what you said in your original post.

Try this...

In the Name box, that little box immediately above column A and on the far
left side of the formula bar, type in the range A4:T2004 then hit ENTER.
This will select the range of interest. Cell A4 will be the active cell. The
active cell is the one cell in the selected range that is not shaded.

Goto the menu FormatConditional Formatting

Condition 1
Select the Formula Is option
Enter this formula *exactly as shown* in the box on the right:
=AND($L4="Y",$P4="Y")
Click the Format button
Select the Patterns tab
Select a shade of GREEN
OK

Click the Add button

Condition 2
Select the Formula Is option
Enter this formula *exactly as shown* in the box on the right:
=$L4="Y"
Click the Format button
Select the Patterns tab
Select a shade of ORANGE
OK out


--
Biff
Microsoft Excel MVP


"Steven" wrote in message
...
The range of the sheet is A4 to T4 all way down to A2004 to T2004.
To recap, if there is a Y in L4 i want the whole of row 4 to change to
orange. If there is a Y in L4 and P4 I wantthe whole of row 4 to turn
green.
I want this to happen all way down, so if there is a Y in L100 row 100
would
turn orange and the there were Y's in L500 and P500 row 500 would turn
green,
etc.

Thanks

"T. Valko" wrote:

Tell me the *exact* entire range of cells you want to format.

--
Biff
Microsoft Excel MVP


"Steven" wrote in message
...
Sorry but this doesnt work, none of the rows change colour. Just a
little
for
information as well. I have around 700 rows that have information in
and
if
they meet the criteria I put in my original posting I want them to
change
colour no matter what row number they are.

Thanks

"T. Valko" wrote:

Try this...

Select the range of cells. Assume this range is A1:E3
Goto the menu FormatConditional Formatting

Condition 1
Select the Formula Is option
Enter this formula in the box on the right:
=AND($D1="Y",$E1<"Y")
Click the Format button
Select the Patterns tab
Select a shade of ORANGE
OK

Click the Add button

Condition 2
Select the Formula Is option
Enter this formula in the box on the right:
=AND($D1:$E1="Y")
Click the Format button
Select the Patterns tab
Select a shade of GREEN
OK out

--
Biff
Microsoft Excel MVP


"Steven" wrote in message
...
Hello,

I am trying to get excel to highlight a row in 2 seperate colours if
certain
conditions are met, for example.

A B C D E
1 0 0 0 Y 0
2 0 0 0 Y Y
3 0 0 0 0 0

I want it so that if a use a Y column D only for row to turn orange.
If
There is a Y in column D and column E for row to turn green. And if
no
Y's
in
D or E for no colour to be used.

So in example above row 1 would be orange, row 2 green and row 3
would
have
no colour.

Can anyone help?

Thanks








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 - flashing colour Michael Excel Discussion (Misc queries) 1 November 24th 06 10:37 AM
change tab colour when using conditional formatting in a cell julie s Excel Worksheet Functions 6 October 23rd 06 09:13 PM
How do I use conditional formatting to colour rows of data? Simon Excel Worksheet Functions 2 October 6th 06 04:05 PM
Conditional formatting: Colour coding Kelly Excel Discussion (Misc queries) 4 January 18th 06 11:11 AM
colour due to conditional formatting & hyperlink/shortcut to a directory Peter STEVENS Excel Worksheet Functions 1 November 17th 05 10:46 PM


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