Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002: How to conditional format band of colors ?

Hi,

Conditional formating feature in Excel helps to brighten up the worksheet
and makes analysing data a lot easier and less stressful.

May I know how to conditional format repeated bands of colors in the
folowing example ?

Eg 1:
A ... M

1 Green
2 Yellow
3
200


E.g 2
A ... M

1 Green
2 Yellow
3 Red
200


E.g 3
A .... M

1 Green
2 Yellow
3 Red
4 Blue
5
200

Kindly show me the Formula 1, 2, 3 and 4 in the dialog box for each example
and the area needs to be highlighted before formating.


Many Thanks

Low


--
A36B58K641
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Excel 2002: How to conditional format band of colors ?

You onlyy have 3 conditional formating in excel so you can only have a
maximum of three colors. You can use the MOD function along with ROW to
color rows

=if(MOD(ROW(A1),3)=0,true,false) color 1
=if(MOD(ROW(A1),3)=1,true,false) color 2
=if(MOD(ROW(A1),3)=2,true,false) color 3

Or you can write a macro to color your sheet

Lastrow = range("A" & Rows.count).end(xlup).Row
for rowCount = 1 to Lastrow
Select Case RowCount Mod 4 'number of colors

Case 0 : Rows(RowCount).interior.colorindex = 3
Case 1 : Rows(RowCount).interior.colorindex = 4
Case 2 : Rows(RowCount).interior.colorindex = 5
Case 3 : Rows(RowCount).interior.colorindex = 6
end select
next rowCount

next RowCount




"Mr. Low" wrote:

Hi,

Conditional formating feature in Excel helps to brighten up the worksheet
and makes analysing data a lot easier and less stressful.

May I know how to conditional format repeated bands of colors in the
folowing example ?

Eg 1:
A ... M

1 Green
2 Yellow
3
200


E.g 2
A ... M

1 Green
2 Yellow
3 Red
200


E.g 3
A .... M

1 Green
2 Yellow
3 Red
4 Blue
5
200

Kindly show me the Formula 1, 2, 3 and 4 in the dialog box for each example
and the area needs to be highlighted before formating.


Many Thanks

Low


--
A36B58K641

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,316
Default Excel 2002: How to conditional format band of colors ?

Joel's instructions are on the money but if you need some detailed
instructions on condtional formatting the following website has some great
information.

http://www.contextures.com/xlCondFormat03.html
--
Kevin Backmann


"Joel" wrote:

You onlyy have 3 conditional formating in excel so you can only have a
maximum of three colors. You can use the MOD function along with ROW to
color rows

=if(MOD(ROW(A1),3)=0,true,false) color 1
=if(MOD(ROW(A1),3)=1,true,false) color 2
=if(MOD(ROW(A1),3)=2,true,false) color 3

Or you can write a macro to color your sheet

Lastrow = range("A" & Rows.count).end(xlup).Row
for rowCount = 1 to Lastrow
Select Case RowCount Mod 4 'number of colors

Case 0 : Rows(RowCount).interior.colorindex = 3
Case 1 : Rows(RowCount).interior.colorindex = 4
Case 2 : Rows(RowCount).interior.colorindex = 5
Case 3 : Rows(RowCount).interior.colorindex = 6
end select
next rowCount

next RowCount




"Mr. Low" wrote:

Hi,

Conditional formating feature in Excel helps to brighten up the worksheet
and makes analysing data a lot easier and less stressful.

May I know how to conditional format repeated bands of colors in the
folowing example ?

Eg 1:
A ... M

1 Green
2 Yellow
3
200


E.g 2
A ... M

1 Green
2 Yellow
3 Red
200


E.g 3
A .... M

1 Green
2 Yellow
3 Red
4 Blue
5
200

Kindly show me the Formula 1, 2, 3 and 4 in the dialog box for each example
and the area needs to be highlighted before formating.


Many Thanks

Low


--
A36B58K641

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
colors and conditional format - greater than, less than Michele Excel Discussion (Misc queries) 5 October 1st 07 10:38 PM
Excel 2002 : How to conditional format the Sub Total Table ? Mr. Low Excel Discussion (Misc queries) 4 September 18th 07 03:06 PM
Excel 2002: How to conditional format a row of cells ? Mr. Low Excel Discussion (Misc queries) 2 September 18th 07 03:04 PM
Cell colors on conditional format tankerman Excel Discussion (Misc queries) 6 March 2nd 07 06:31 PM
How to carry over conditional format colors to a chart Tim A Charts and Charting in Excel 1 April 1st 05 12:59 AM


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