Hello,
I have to track expiry dates in a datasheet. Actually, I'd like the expiry
date field to change color 30 days prior to the expiry date written in the
field. Let's say the expiry date is oct 24 2008, I want the field to change
color on sept 25 2008. The date format chosen is 24-oct-08, does it matter?
Thanks!

Signature
Margot
Joel - 28 May 2008 11:29 GMT
try this
=(G1-TODAY()<30)
> Hello,
>
[quoted text clipped - 4 lines]
>
> Thanks!
Margotbf - 28 May 2008 11:40 GMT
And G1 stands for?

Signature
Margot
> try this
>
[quoted text clipped - 8 lines]
> >
> > Thanks!
Joel - 28 May 2008 12:58 GMT
G1 is the cell with the conditional formating.
> And G1 stands for?
>
[quoted text clipped - 10 lines]
> > >
> > > Thanks!
Niek Otten - 28 May 2008 11:31 GMT
Hi Margot,
Expiry date in B1.
In C1: =B1-30
Select your date(s)
Format>Conditional Formatting
Select Cell value is, next box select greater than, next box click C1, so you get =$C$1, click Format, select a color and click OK
and once more.

Signature
Kind regards,
Niek Otten
Microsoft MVP - Excel
| Hello,
|
[quoted text clipped - 4 lines]
|
| Thanks!
DILipandey - 28 May 2008 14:07 GMT
Hi,
If you have the dates in column A starting with row1, then you can use
following logic in conditional formatting:-
=IF(A1-NOW()<=30,"True","False")

Signature
Dilip Kumar Pandey
MBA, BCA, B.Com(Hons.)
dilipandey@yahoo.com
dilipandey@gmail.com
New Delhi, India
> Hello,
>
[quoted text clipped - 4 lines]
>
> Thanks!
David Biddulph - 28 May 2008 14:46 GMT
... or just =A1-NOW()<=30
--
David Biddulph
> Hi,
> If you have the dates in column A starting with row1, then you can use
[quoted text clipped - 13 lines]
>>
>> Thanks!