conditional formating on dates


M

Margotbf

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!
 
Ad

Advertisements

N

Niek Otten

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.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel


| 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!
|
| --
| Margot
 
D

DILipandey

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")
--
Dilip Kumar Pandey
MBA, BCA, B.Com(Hons.)
(e-mail address removed)
(e-mail address removed)
New Delhi, India
 
Ad

Advertisements

D

David Biddulph

.... or just =A1-NOW()<=30
--
David Biddulph

DILipandey said:
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")
--
Dilip Kumar Pandey
MBA, BCA, B.Com(Hons.)
(e-mail address removed)
(e-mail address removed)
New Delhi, India
 

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