Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Format every other line

Status
Not open for further replies.

skygirl65

Technical User
Jul 18, 2004
32
US
I have a spreadsheet that needs to have every other line shaded, like accounting paper to make it easier to read. Everytime I sort is by a different column, the shaded lines go with the data and it is no longer every other line. Any ideas?

 
Hi,

Use Conditional Formatting...

Selct all the columns in your table

Format/Conditional Formatting...

Criteria1: Fromula is: =mod(Row(),2)=0 -- whatever shade

Criteria2: Fromula is: =mod(Row(),2)=1 -- whatever other shade


Skip,
[sub]
[glasses] [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get...
Neopolitan Blownapart! [tongue][/sub]

 
Also see my FAQ on it:-

How can I shade alternate rows automatically?

faq68-4744

Regards
Ken..........

----------------------------------------------------------------------------
[peace]It's easier to beg forgiveness than ask permission[2thumbsup]
----------------------------------------------------------------------------
 
this worked well - thanks for the tip. Just one more question. I have two columns that need to be formatted a different color, and when I used this conditional format, they change to this alternating grey and white also. Is ther a way to go back and override it for certian colunms?

 


Select those columns and apply whatever different ConditionalFormatting is desired.

Skip,
[sub]
[glasses] [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get...
Neopolitan Blownapart! [tongue][/sub]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top