Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default Formatting Alternating Rows with a Color

Hello,

Is there a macro or quick way to highlight alternating rows in color? For
example, row 1 would be gray, row 3 would be gray, row 5 would be gray, etc.

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formatting Alternating Rows with a Color

Use Conditional Formatting, with a Formula like:

=MOD(ROW(),2)=1

then set the background colour (Patterns tab) to grey.

Hope this helps.

Pete

On Sep 29, 1:18*pm, Daren wrote:
Hello,

Is there a macro or quick way to highlight alternating rows in color? *For
example, row 1 would be gray, row 3 would be gray, row 5 would be gray, etc.

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Formatting Alternating Rows with a Color

Hi,

Select the rows you want to format in this way then

Format|Conditional Format
Select formula is and enter the formula
=MOD(ROW(),2)=1

Pick your colour
Click OK

Mike

"Daren" wrote:

Hello,

Is there a macro or quick way to highlight alternating rows in color? For
example, row 1 would be gray, row 3 would be gray, row 5 would be gray, etc.

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default Formatting Alternating Rows with a Color

Thanks, that worked well.

"Mike H" wrote:

Hi,

Select the rows you want to format in this way then

Format|Conditional Format
Select formula is and enter the formula
=MOD(ROW(),2)=1

Pick your colour
Click OK

Mike

"Daren" wrote:

Hello,

Is there a macro or quick way to highlight alternating rows in color? For
example, row 1 would be gray, row 3 would be gray, row 5 would be gray, etc.

Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default Formatting Alternating Rows with a Color

Thanks!

"Pete_UK" wrote:

Use Conditional Formatting, with a Formula like:

=MOD(ROW(),2)=1

then set the background colour (Patterns tab) to grey.

Hope this helps.

Pete

On Sep 29, 1:18 pm, Daren wrote:
Hello,

Is there a macro or quick way to highlight alternating rows in color? For
example, row 1 would be gray, row 3 would be gray, row 5 would be gray, etc.

Thanks.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Formatting Alternating Rows with a Color

You're welcome.

Pete

On Sep 29, 2:06*pm, Daren wrote:
Thanks!


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Formatting Alternating Rows with a Color

Daren

Pete's formula won't survive through filtering if you intend to do any.

This will keep alternate row colors even when filtering.

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


Gord Dibben MS Excel MVP


On Mon, 29 Sep 2008 06:06:00 -0700, Daren
wrote:

Thanks!

"Pete_UK" wrote:

Use Conditional Formatting, with a Formula like:

=MOD(ROW(),2)=1

then set the background colour (Patterns tab) to grey.

Hope this helps.

Pete

On Sep 29, 1:18 pm, Daren wrote:
Hello,

Is there a macro or quick way to highlight alternating rows in color? For
example, row 1 would be gray, row 3 would be gray, row 5 would be gray, etc.

Thanks.




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
~L ~L is offline
external usenet poster
 
Posts: 177
Default Formatting Alternating Rows with a Color

This formula comes unhinged if there are any blank rows. Adjust the range to
the start of the data and make sure the data is continuous if this fails.

"Gord Dibben" wrote:

Daren

Pete's formula won't survive through filtering if you intend to do any.

This will keep alternate row colors even when filtering.

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


Gord Dibben MS Excel MVP


On Mon, 29 Sep 2008 06:06:00 -0700, Daren
wrote:

Thanks!

"Pete_UK" wrote:

Use Conditional Formatting, with a Formula like:

=MOD(ROW(),2)=1

then set the background colour (Patterns tab) to grey.

Hope this helps.

Pete

On Sep 29, 1:18 pm, Daren wrote:
Hello,

Is there a macro or quick way to highlight alternating rows in color? For
example, row 1 would be gray, row 3 would be gray, row 5 would be gray, etc.

Thanks.




  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Formatting Alternating Rows with a Color

Good point.


Thanks, Gord

On Tue, 30 Sep 2008 13:24:01 -0700, ~L wrote:

This formula comes unhinged if there are any blank rows. Adjust the range to
the start of the data and make sure the data is continuous if this fails.

"Gord Dibben" wrote:

Daren

Pete's formula won't survive through filtering if you intend to do any.

This will keep alternate row colors even when filtering.

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


Gord Dibben MS Excel MVP


On Mon, 29 Sep 2008 06:06:00 -0700, Daren
wrote:

Thanks!

"Pete_UK" wrote:

Use Conditional Formatting, with a Formula like:

=MOD(ROW(),2)=1

then set the background colour (Patterns tab) to grey.

Hope this helps.

Pete

On Sep 29, 1:18 pm, Daren wrote:
Hello,

Is there a macro or quick way to highlight alternating rows in color? For
example, row 1 would be gray, row 3 would be gray, row 5 would be gray, etc.

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
Alternating Color Rows Gator Excel Discussion (Misc queries) 1 June 18th 08 05:42 PM
insert cells in alternating rows? happygal Excel Worksheet Functions 1 May 30th 08 09:37 PM
Conditional formatting similar to shading alternating rows Conan Kelly Excel Worksheet Functions 10 August 22nd 06 11:13 PM
How do I set an auto alternating row color? Daniel Stephens Excel Discussion (Misc queries) 2 July 19th 05 05:22 PM
Alternating colors for rows jp Excel Discussion (Misc queries) 1 December 28th 04 09:00 PM


All times are GMT +1. The time now is 11:35 PM.

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"