Hi Ronnie,
Please provide a sample of several dates covering all possible
situations in a spreadsheet format showing the color you want.
It is impossible to answer your question with only one example,
which causes problems for both you and anyone who tries to answer.
show the dates like yyyy-mm-dd like
2004-06-01 so they are not ambiguous and so that they line up.
What you have said or implied so far: [blk] is the default font color
---A---- ------B-------------- -----C---------------
Task 1 [red] 2004-03-01 [red] 2004-03-31 b1 is < 2004-06-03 (today)
Task 2 [red] 2004-06-01 [red] 2004-06-02 b2 is < 2004-06-03 (today)
Task 3 [red] 2004-06-01 [red] 2004-06-30 b3 is < 2004-06-03 (today)
Task 4 [blk] 2004-07-01 [blk] 2004-07-31 b4 is future
Task 5 [red] 2000-03-01 [red] (empty) b5 < today
My guess is that you want only current tasks marked in Red
so only Task 3 would be colored red and in both B & C columns
The cells that get colored are based on the selection
and each cell in the selection gets a C.F. formula.
The formula used is based on the active cell, since we
have the columns in the formula(s) as absolute you could actually have
any cell on Row 1 as the active cell when you do your C.F. definitions.
Select columns B and C (coloring is based on selection)
Formula 1 is: =AND($b1<=TODAY, $C1>=TODAY)
-----
My real guess as to what you want:
If column C may be blank then the test would involve ISBLANK($C1)
Formula 1 is: =OR(ISBLANK($C1),AND($B1<=TODAY, $C1>=TODAY))
and the results would be
---A---- ------B-------------- -----C---------------
Task 1 [blk] 2004-03-01 [blk] 2004-03-31 b1 is < 2004-06-03 (today)
Task 2 [blk] 2004-06-01 [blk] 2004-06-02 b2 is < 2004-06-03 (today)
Task 3 [red] 2004-06-01 [red] 2004-06-30 b3 is < 2004-06-03 (today)
Task 4 [blk] 2004-07-01 [blk] 2004-07-31 b4 is future
Task 5 [red] 2000-03-01 [red*] (empty) b5 < today
Task 6 [red] 2004-08-01 [red]* (empty) future
*naturally if the coloring is to the font an empty cell will not show
any color for font.
Please set examples out as spreadsheets that is what we work with.
If is very hard to follow wording as to what goes where. You have
to spend the time to ask the question. The better you ask the
question the better and faster the answer. But it is unwise to have
200 people spending several minutes and giving up, than for you
to have spent an hour asking the question. You might find that if
you ask the question logically making it easy to be answered that
could answer it yourself (it happens a lot).
You have to be able to make it so anyone reading the question
knows the who, where, when, why, how, and how much. Try
to leave nothing to chance.
Would suggest you look over my page on Conditional Formatting:
http://www.mvps.org/dmcritchie/excel/condfmt.htm