How to color every other row in excel

A

API

How can I color every row with, say, green, to allow users of my report to
read each line more easily as they cursor from left to right? Thanks.
 
J

JE McGimpsey

API said:
I mean coloring every row of a 200-row excel report using a formula. Thanks.

You can't use a formula directly, as formulae can't change cell colors.

You can use a formula in Conditional formatting. For instance, select
your report area and choose Format/Conditional Formatting:

Condition1: Formula is =MOD(ROW(),2)=0
Format1: <pattern>/<green>

for even rows or

Condition1: Formula is =MOD(ROW(),2)=1
Format1: <pattern>/<green>

for odd ones.


For more complex banding see

http://cpearson.com/excel/banding.htm
 
A

API

Thanks, JE! :)
--
API


JE McGimpsey said:
You can't use a formula directly, as formulae can't change cell colors.

You can use a formula in Conditional formatting. For instance, select
your report area and choose Format/Conditional Formatting:

Condition1: Formula is =MOD(ROW(),2)=0
Format1: <pattern>/<green>

for even rows or

Condition1: Formula is =MOD(ROW(),2)=1
Format1: <pattern>/<green>

for odd ones.


For more complex banding see

http://cpearson.com/excel/banding.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top