Duncs said:
Is it possible to have more than three conditional formats set,
in the "Conditional Formatting" window? If so, how do you do it?
You actually have four: three in conditionals, and one more you
can set as the default for the range.
Three is the limit until Excel 2007 (I believe). With the 2007
version, assuming the info I've just stated is correct,[1], you
have many more.
However, you can combine formulas in tricky ways using AND and
OR, IF-statements, etc. For example, I have a stock symbol
column in a chart that uses conditional formatting to color
every other row. But now I want to outline and have a different
font color for the symbols that represent options, not stocks.
(They are almost always more than 4 characters in length,
whereas the normal listed and NASDAQ issues I trade are virtually
always limited to four chars, max.)
So I have as condition 1 in that column, as a formula:
=AND(MOD(ROW(),2),LEN(OFFSET($E$1,ROW()-1,))>4)
And the formatting is the fill color for my odd-numbered rows,
along with the "watermelon pink/red" color for borders and font
for those option symbols.
Condition 2:
=LEN(OFFSET($E$1,ROW()-1,))>4
This condition handles the options symbols for the even-numbered
rows with no background fill. The font color and borders are set
as above, but the background fill is left off.
(Remember that the first condition that evaluates to True is
applied, and then Excel exits the condtional module.)
Condition 3:
=MOD(ROW(),2)
This applies only my background fill to color in the odd-numbered
row-cells, but leaves the other formatting alone as for normal
stock symbols.
If you want to see the result, it's currently on a web page at
http://heliotropos.com/xl/tmp/OpenOrders.jpg
and is Column E.
Btw, all the colors you see there other than the default font
and fill are done with conditionals.
A final note: there is a free add-in to extend the conditional
formatting dramatically. I have used it a couple of times, but
found it was a performance drag on my already top-heavy worksheets
(lots of array formulas, etc.), so took it back out for now.
But it certainly does seem slick and can fill a need. It also
can apply multiple conditions, not just the first one found that
evaluates to True.
I can't remember which one I downloaded and tried, as Google
tells me there seem to be several. Here is what I just
found, but I have no opinion positive or negative about it.
It may or may not be the one I tried last year.
http://www.xldynamic.com/source/xld.CFPlus.Download.html
I see there are a number of others that are shareware, not freeware.
See also, e.g.,
http://www.mvps.org/dmcritchie/excel/condfmt.htm
[1] I use 2002.