Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how do I shade alternating rows in spreadsheet

I want to shade every other line in Excel spreadsheet but if I go back and
insert an additional line it duplicates the color of previous line. I would
like it to switch to alternating colors as if I had not inserted an
additional line.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,420
Default how do I shade alternating rows in spreadsheet

See http://www.xldynamic.com/source/xld.CF.html#rows

--
__________________________________
HTH

Bob

"JasonH" wrote in message
...
I want to shade every other line in Excel spreadsheet but if I go back and
insert an additional line it duplicates the color of previous line. I
would
like it to switch to alternating colors as if I had not inserted an
additional line.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,203
Default how do I shade alternating rows in spreadsheet

Select all of the rows you need to set up, use
Format -- Cells --Conditional Formatting
Change from "Cell Value Is" to "Formula Is"
and enter
=MOD(ROW(),2)=0
(yes, just like that with both = symbols in it)
and then set the format that you want even numbered rows to have (on the
patterns tab), [OK], [OK] and poof! you're done.


"JasonH" wrote:

I want to shade every other line in Excel spreadsheet but if I go back and
insert an additional line it duplicates the color of previous line. I would
like it to switch to alternating colors as if I had not inserted an
additional line.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default how do I shade alternating rows in spreadsheet

If you will be doing any filtering on the rows you will want to use

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

=MOD(ROW(),2)=0 won't retain banding when data is filtered.


Gord Dibben MS Excel MVP

On Fri, 10 Jul 2009 08:12:01 -0700, JLatham
wrote:

Select all of the rows you need to set up, use
Format -- Cells --Conditional Formatting
Change from "Cell Value Is" to "Formula Is"
and enter
=MOD(ROW(),2)=0
(yes, just like that with both = symbols in it)
and then set the format that you want even numbered rows to have (on the
patterns tab), [OK], [OK] and poof! you're done.


"JasonH" wrote:

I want to shade every other line in Excel spreadsheet but if I go back and
insert an additional line it duplicates the color of previous line. I would
like it to switch to alternating colors as if I had not inserted an
additional line.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 21
Default how do I shade alternating rows in spreadsheet


Select the area that you want to shade (if you want the entire sheet
CTRL A)

In conditional formatting
Choose "Formula Is" =MOD(ROW(),2)




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how do I shade alternating rows in spreadsheet

On Friday, July 10, 2009 11:01:05 AM UTC-4, JasonH wrote:
I want to shade every other line in Excel spreadsheet but if I go back and
insert an additional line it duplicates the color of previous line. I would
like it to switch to alternating colors as if I had not inserted an
additional line.


Guys there is a much MUCH easier way to do with without special code or scripts or anything.

-Simply paint the two lines the colors that you want repeated
-Highlight the area or complete rows you want copied
-Click the "Paint Formatting" tool
-Paint that $%iT down your document (Click and drag as desired)
-Laugh at all the code you didn't have to write.
-Profit
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,514
Default how do I shade alternating rows in spreadsheet

On Friday, July 10, 2009 11:01:05 AM UTC-4, JasonH wrote:
I want to shade every other line in Excel spreadsheet but if I go
back and insert an additional line it duplicates the color of
previous line. I would like it to switch to alternating colors as
if I had not inserted an additional line.


Guys there is a much MUCH easier way to do with without special code
or scripts or anything.

-Simply paint the two lines the colors that you want repeated
-Highlight the area or complete rows you want copied
-Click the "Paint Formatting" tool
-Paint that $%iT down your document (Click and drag as desired)
-Laugh at all the code you didn't have to write.
-Profit


What 'code' are you talking about?
Why go to all that trouble when a simple CF formula will do?

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how do I shade alternating rows in spreadsheet

Painting doesn't seem any easier, but in any case it won't survive a row deletion.
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
Problem with alternating table rows Linda Excel Discussion (Misc queries) 2 June 18th 07 01:30 PM
Alternating BG colors between groups of rows WhiteFantom Excel Discussion (Misc queries) 2 December 16th 06 06:05 PM
shade alternating rows in excel Matt8301 Excel Discussion (Misc queries) 2 July 28th 05 08:54 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 07:11 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"