Conditional Formatting Question

D

DFrank

I am working with a spreadsheet that I want 2 conditional formats present.
The first is alternating the row color between white and light green using
=MOD(ROW()-2,2*1)+2<=2. The second is to bold and change the color (pretty
much just make stand out) any value that is 'Y' (this is a Y/N spreadsheet).

When I input both conditions the rows alternate colors, but only the white
rows bold the 'Y.'

How can i make it so that both the green and white shaded rows bold and
color the 'Y' value?

Included is a picture of the layout and the conditional formatting input:
http://img71.imageshack.us/img71/1964/excelquestionpf0.jpg


Thanks
 
J

Jarek Kujawa

try to define the following conditional formatting in A1:

Formula Is->=or(MOD(ROW()-2;2*1)+2<=2,A1=CHAR(89))

then copy
 
V

vezerid

You did it correctly. For some reason (unbeknownst to me, others might
know the exact conditions under which this happens), Excel sometimes
places the entire formula in quotes, thus making it a string - never
TRUE.

Having selected all cells issue Conditional Formatting and just remove
the quotes. This time it should work.

HTH
Kostis Vezerides
 
V

vezerid

You define three conditions. First should be the combination of both
with AND:

=AND(=MOD(ROW()-2,2*1)+2<=2,A1="Y")

In this case set both color and bold.
Second should be only the MOD condition, here you only set the color.
Third should be only the "Y" condition and you set bold.

HTH
Kostis Vezerides
 
D

DFrank

Thanks! this si the exact theory i ran by my superviser, but i didnt know
what equation to use for the first one. thanks again.
 
R

Rick Rothstein \(MVP - VB\)

By the way, you can simplify the MOD function part of your conditions.
Instead of using this....

=MOD(ROW()-2,2*1)+2<=2

use this instead (assuming A1 is the active cell in the selection that you
are applying the conditional format to)...

=MOD(ROW(A1),2)=0

Rick
 

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