A coworker of mine wanted to know how to do conditional formatting, but was unsure of what it was called, etc. So I showed him.
Well, then he came to me with a question, which I find perplexing. Basically it's driving me batty, b/c surely there's a simple answer/solution, but I just can't seem to get it worked out.
I have Office 2007 on my machine currently, and he has Office 2003, so I'd prefer methods that will work with 2003 specifically if possible.
Here's the situation.
He's got a Column which gets the difference in 2 dates (each cell) IF another cell has a value.
Here's a sample of the values, and the function:
Cells:[TT]
Row# Column D
29 Current Date
30 5/27/2009
31 7/25/2009
32 6/14/2009
33 7/15/2009
34
35
[/TT]
Cell C39 is a static date. The value is 7/31/2009
The formula in Cell H29 is:
Simple enough formula, I think.
The problem comes with the conditional formatting.
He tried these 2 conditions, and has a 3rd to add:
They are the same for Range ($H$29:$H$38)
[tt]
Condition 1:
Cell Value > 20 Fill Red
Cell Value between 15 AND 20 Fill Yellow
[/tt]
That seems simple enough to me.
However, when he has a blank field in Column D, it's formatting the cell in the same row, column H with a red fill.
My first guess was that we could put a formula in the conditional formatting, but is there not a way to make the conditional formatting not do anything with blank values, other than a formula?
I did try looking at CPearson's info here:
But unless I overlooked it, I don't see any good answer for this. Surely it's a common issue that I just can't seem to find the right solution.
Any advice/examples/references would be greatly appreciated.
--
"If to err is human, then I must be some kind of human!" -Me
Well, then he came to me with a question, which I find perplexing. Basically it's driving me batty, b/c surely there's a simple answer/solution, but I just can't seem to get it worked out.
I have Office 2007 on my machine currently, and he has Office 2003, so I'd prefer methods that will work with 2003 specifically if possible.
Here's the situation.
He's got a Column which gets the difference in 2 dates (each cell) IF another cell has a value.
Here's a sample of the values, and the function:
Cells:[TT]
Row# Column D
29 Current Date
30 5/27/2009
31 7/25/2009
32 6/14/2009
33 7/15/2009
34
35
[/TT]
Cell C39 is a static date. The value is 7/31/2009
The formula in Cell H29 is:
Code:
=IF(ISBLANK(D29)," ",SUM($C$39-D29))
Simple enough formula, I think.
The problem comes with the conditional formatting.
He tried these 2 conditions, and has a 3rd to add:
They are the same for Range ($H$29:$H$38)
[tt]
Condition 1:
Cell Value > 20 Fill Red
Cell Value between 15 AND 20 Fill Yellow
[/tt]
That seems simple enough to me.
However, when he has a blank field in Column D, it's formatting the cell in the same row, column H with a red fill.
My first guess was that we could put a formula in the conditional formatting, but is there not a way to make the conditional formatting not do anything with blank values, other than a formula?
I did try looking at CPearson's info here:
But unless I overlooked it, I don't see any good answer for this. Surely it's a common issue that I just can't seem to find the right solution.
Any advice/examples/references would be greatly appreciated.
--
"If to err is human, then I must be some kind of human!" -Me