#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 191
Default alternating format

Someone (I think) mentioned to me that there was a way in Excel 2003 to have
line formatting alternate to make a ledger-style effect (every other line is
white or a color).

True, or am I make-believing?

Thx.
--
Boris
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 964
Default alternating format

True! You can do this with Conditional Formatting.

Highlight your entire worksheet (or just the area that you want shaded)
Then, from the Format Menu, select "Conditional Formatting..."
Change "Cell Value Is" to "Formula Is"
Enter the formula: =MOD(ROW(),2)=0
Set your format
Click OK

That should do it. This shades all even numbered rows. If you'd rather
have odd numbers shaded, then change the 0 to a 1 in the above formula.

HTH,
Elkar


"BorisS" wrote:

Someone (I think) mentioned to me that there was a way in Excel 2003 to have
line formatting alternate to make a ledger-style effect (every other line is
white or a color).

True, or am I make-believing?

Thx.
--
Boris

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default alternating format

A related question: is there a way to format entire rows of a spreadsheet
such that if the value or text of a cell is different than the cell above
(simple example: if a2=a1, then the row is the same color (say red) as the
row above; if a2 is not equal to a1, then the row color changes to no fill
(white), and repeat this for all the rows in the spreadsheet. In other words
I need the formula to be a relative reference to the cell above, not an
absolute reference to rows 1 and 2.

"Elkar" wrote:

True! You can do this with Conditional Formatting.

Highlight your entire worksheet (or just the area that you want shaded)
Then, from the Format Menu, select "Conditional Formatting..."
Change "Cell Value Is" to "Formula Is"
Enter the formula: =MOD(ROW(),2)=0
Set your format
Click OK

That should do it. This shades all even numbered rows. If you'd rather
have odd numbers shaded, then change the 0 to a 1 in the above formula.

HTH,
Elkar


"BorisS" wrote:

Someone (I think) mentioned to me that there was a way in Excel 2003 to have
line formatting alternate to make a ledger-style effect (every other line is
white or a color).

True, or am I make-believing?

Thx.
--
Boris

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
Conditonal Format with a date format Kevin Excel Discussion (Misc queries) 2 April 27th 05 10:20 PM
Office2000: Conditional format behaves strangely Arvi Laanemets Excel Discussion (Misc queries) 1 April 7th 05 08:47 AM
can't format cell - have tried unlocking and unprotecting griffin Excel Discussion (Misc queries) 1 April 5th 05 02:11 AM
why does currency format change to number format? Cassie Excel Discussion (Misc queries) 3 March 18th 05 06:57 PM
Keep custom format in new worksheet Buddy Excel Discussion (Misc queries) 2 March 14th 05 10:03 AM


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