#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
STS STS is offline
external usenet poster
 
Posts: 10
Default Shading of rows

Hi,

How can I shade multiple rows at the same time, for example all odd row
numbers in gray, all even numbers in blue? I am sure there is a better way of
doing it than manualy row by row. Thank you for your help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Shading of rows

Try this...

Assume the range of interest is A1:E5

Select the range A1:E5
Goto FormatConditional Formatting

Condition 1
Formula Is: =MOD(ROW(),2)0
Click the Format button
Select the Patterns tab
Select a gray fill
OK

Click the Add button

Condition 2
Formula Is: =MOD(ROW(),2)=0
Click the Format button
Select the Patterns tab
Select a blue fill
OK out

--
Biff
Microsoft Excel MVP


"STS" wrote in message
...
Hi,

How can I shade multiple rows at the same time, for example all odd row
numbers in gray, all even numbers in blue? I am sure there is a better way
of
doing it than manualy row by row. Thank you for your help.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
STS STS is offline
external usenet poster
 
Posts: 10
Default Shading of rows

Thank you, it works.

"T. Valko" wrote:

Try this...

Assume the range of interest is A1:E5

Select the range A1:E5
Goto FormatConditional Formatting

Condition 1
Formula Is: =MOD(ROW(),2)0
Click the Format button
Select the Patterns tab
Select a gray fill
OK

Click the Add button

Condition 2
Formula Is: =MOD(ROW(),2)=0
Click the Format button
Select the Patterns tab
Select a blue fill
OK out

--
Biff
Microsoft Excel MVP


"STS" wrote in message
...
Hi,

How can I shade multiple rows at the same time, for example all odd row
numbers in gray, all even numbers in blue? I am sure there is a better way
of
doing it than manualy row by row. Thank you for your help.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Shading of rows

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"STS" wrote in message
...
Thank you, it works.

"T. Valko" wrote:

Try this...

Assume the range of interest is A1:E5

Select the range A1:E5
Goto FormatConditional Formatting

Condition 1
Formula Is: =MOD(ROW(),2)0
Click the Format button
Select the Patterns tab
Select a gray fill
OK

Click the Add button

Condition 2
Formula Is: =MOD(ROW(),2)=0
Click the Format button
Select the Patterns tab
Select a blue fill
OK out

--
Biff
Microsoft Excel MVP


"STS" wrote in message
...
Hi,

How can I shade multiple rows at the same time, for example all odd row
numbers in gray, all even numbers in blue? I am sure there is a better
way
of
doing it than manualy row by row. Thank you for your help.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Shading of rows

Did you try filtering your data after entering the CF per Biff's instructions?


Gord

On Mon, 17 Mar 2008 21:16:01 -0700, STS wrote:

Thank you, it works.

"T. Valko" wrote:

Try this...

Assume the range of interest is A1:E5

Select the range A1:E5
Goto FormatConditional Formatting

Condition 1
Formula Is: =MOD(ROW(),2)0
Click the Format button
Select the Patterns tab
Select a gray fill
OK

Click the Add button

Condition 2
Formula Is: =MOD(ROW(),2)=0
Click the Format button
Select the Patterns tab
Select a blue fill
OK out

--
Biff
Microsoft Excel MVP


"STS" wrote in message
...
Hi,

How can I shade multiple rows at the same time, for example all odd row
numbers in gray, all even numbers in blue? I am sure there is a better way
of
doing it than manualy row by row. Thank you for your help.







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Shading of rows

Conditional Formatting

Condition1: For odd rows
=MOD(ROW(),2)=1

Condition2: For even rows
=MOD(ROW(),2)=0

Format any color you like



"STS" wrote:

Hi,

How can I shade multiple rows at the same time, for example all odd row
numbers in gray, all even numbers in blue? I am sure there is a better way of
doing it than manualy row by row. Thank you for your help.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
STS STS is offline
external usenet poster
 
Posts: 10
Default Shading of rows

Thank you, works great.


"Teethless mama" wrote:

Conditional Formatting

Condition1: For odd rows
=MOD(ROW(),2)=1

Condition2: For even rows
=MOD(ROW(),2)=0

Format any color you like



"STS" wrote:

Hi,

How can I shade multiple rows at the same time, for example all odd row
numbers in gray, all even numbers in blue? I am sure there is a better way of
doing it than manualy row by row. Thank you for your help.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Shading of rows

You're welcome!

"STS" wrote:

Thank you, works great.


"Teethless mama" wrote:

Conditional Formatting

Condition1: For odd rows
=MOD(ROW(),2)=1

Condition2: For even rows
=MOD(ROW(),2)=0

Format any color you like



"STS" wrote:

Hi,

How can I shade multiple rows at the same time, for example all odd row
numbers in gray, all even numbers in blue? I am sure there is a better way of
doing it than manualy row by row. Thank you for your help.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Shading of rows

If you want the row banding to remain through filtering use this formula where
the others have showed you.

=MOD(SUBTOTAL(3,$A1:$A$2),2)=0


Gord Dibben MS Excel MVP

On Mon, 17 Mar 2008 20:01:00 -0700, STS wrote:

Hi,

How can I shade multiple rows at the same time, for example all odd row
numbers in gray, all even numbers in blue? I am sure there is a better way of
doing it than manualy row by row. Thank you for your help.


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
shading data in rows Jamie Excel Discussion (Misc queries) 2 February 7th 08 06:46 PM
shading rows peter mizzi Excel Discussion (Misc queries) 3 May 27th 07 03:09 PM
Repeated shading of rows?? Andy Excel Discussion (Misc queries) 8 September 24th 06 10:28 AM
Auto color-shading of rows Fitz Charts and Charting in Excel 9 November 27th 05 01:11 AM
shading different rows when a value changes in col. Linc Excel Worksheet Functions 19 August 4th 05 12:54 AM


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