Computing.Net > Forums > Database > Date formulas

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Date formulas

Reply to Message Icon

Name: rickang
Date: February 24, 2009 at 02:22:29 Pacific
OS: Windows XP
Subcategory: General
Comment:

Hi,

i wish to place a date into a cell, however i want it to change colour or shade red when it expires over a certain date. eg 29/02/09, shades red when it passes 2 years from that date.

can it be done?



Sponsored Link
Ads by Google

Response Number 1
Name: Mike (by mmcconaghy)
Date: February 24, 2009 at 10:55:18 Pacific
Reply:

The simplest way would be something like this,
assuming your DATE is in cell A1:


1st - Highlight Data Cell
I.E. Cell A1

On the Menu Bar:

2nd - Format
3rd - Conditional Formatting
4th – Change “Cell Value is” to “Formula Is”
5th – Enter the formula:

=AND((A1+731)=TODAY())

Sub Menu Format :
6th - Patterns
7th - Choose a pretty color
8th - Press OK
9th - Press OK

You are simply adding 731 days to the date in cell A1
and when they match your cell changes color.

There are probably other ways of doing it, but this works.

MIKE


0

Response Number 2
Name: rickang
Date: February 24, 2009 at 13:24:10 Pacific
Reply:

i cannot seem to get it to work.

Thanks anyway


0

Response Number 3
Name: Mike (by mmcconaghy)
Date: February 24, 2009 at 13:58:13 Pacific
Reply:

What happens? or doesn't happen?
Is the target cell formated at a date?

MIKE


0

Response Number 4
Name: rickang
Date: February 24, 2009 at 14:16:59 Pacific
Reply:

nothing, what ever date i input it remains the same. Ive inputted a date over 2 days ago and entered the formula on the conditional format. In theory then this should shade out straight away on pressing ok. It must be something that im doing wrong!


0

Response Number 5
Name: rickang
Date: February 24, 2009 at 14:18:53 Pacific
Reply:

sorry i inputted a date over 2 years ago not 2 days ago.


0

Related Posts

See More



Response Number 6
Name: Mike (by mmcconaghy)
Date: February 24, 2009 at 14:36:23 Pacific
Reply:

The original formula only works on the Exact date two years in the future.

For greater than or equal to,
two years try this:

=AND((A1+732)>TODAY())

Notice the change from
Equals to Greater Than
and
731 days to 732 days

MIKE


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: Date formulas

Need help calculating dates www.computing.net/answers/dbase/need-help-calculating-dates/510.html

Validation Rule for Date www.computing.net/answers/dbase/validation-rule-for-date/25.html

Access 2000 query result www.computing.net/answers/dbase/access-2000-query-result/272.html