English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am looking for a formula that will change the cell if the date is greater than 6 months ago. e.g If I enter 1st June I need the cell highlighted from the following 1st December onwards.

2007-09-07 09:26:44 · 3 answers · asked by neil b 4 in Computers & Internet Software

3 answers

Use the Datedif function.

2007-09-07 09:31:56 · answer #1 · answered by Anonymous · 0 0

Go to:

Tools > Add-Ins...

Then make sure that Analysis ToolPak (should be the first item) is checked. Then click OK.

The Analysis Toolpak isn't normally added in by default, so you need to check that it is added or otherwise the EDATE function won't work.

Now in some cell that won't get changed, enter the formula:

=EDATE(NOW(), -6)

Afterwards you may want to format the cell as a date if the cell looks like a number.

Go to:

Format > Cells...

Click the Number tab, then select Date from the list and pick the date format you want then click OK.

After formatting that one cell now you are going to format the ones you want highlighted.

Go to:

Format > Conditional Formatting...

For the Window that pops up you want for the areas:

1.) Cell Value Is
2.) less than

Then in the third entry, click the little button to the right of the text entry box and select the cell you entered the EDATE formula into.

Now click on the Format... button then click the Patterns tab. Then you'll select the color you want. Then click OK on each window. It will highlight the cell that color if the cell occurred before the date in the cell where you entered the EDATE formula.

2007-09-10 07:33:14 · answer #2 · answered by devilishblueyes 7 · 0 0

This is one way of doing that.

=EDATE (E3,6)

Where

E3 = your original date = 6/1/07

2007-09-07 09:52:57 · answer #3 · answered by voyager 6 · 1 0

fedest.com, questions and answers