Another Date Conditional Format

pjrweb

New Member
Joined
Aug 28, 2011
Messages
5
Evening,

I am struggling to find this type of formatting.

I enter a date when a person took a test e.g. 29/AUG/11

If 275 days i want it to go Amber and in 365 days go red.

Any help on the code?

Regards,
PJ
 
Thanks for that.
It worked ok so hope it does for original poster .

Pedro
 
Upvote 0

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Still will not work.

Column B from B2 downwards contains date of when tests where taken.

Colours all in the column in one colour and not another.
 
Upvote 0
What cells have dates in them and is there a formula in each cell or just the date manually entered.

Pedro
 
Upvote 0
Try this.

In cell B2 go to conditional formatting and set conditions as

1. Formula is =(B2="")
Set Pattern as "no colour", font as "automatic"

2. Formula is =(B2=TODAY()-365)
Set Pattern as Red

3.Formula is =(B2=TODAY()-275)
Set Pattern as amber
Once CF is finished click OK and return to cell B2.
Right click and copy
Then highlight all the cells you wish the CF format to be used in
Right click and go Paste Special/Format

That does the trick on my test sheet.
The only thing to occur though is that one day after the CF is triggered the cell will no longer be coloured amber in the first instance ,

What action do you propose to do once cell turns amber?

Pedro
 
Upvote 0
Had another go at this and added a column "no of days since test"
Here is result
Excel Workbook
BC
1Test Datedays since test
230-11-10276
331-08-10367
401-12-10275
501-09-10366
605-10-10332
702-09-10365
803-12-10273
Sheet1



Conditional formatting done in each column as follows
B2
Condition 1 =(B2<=274)
No format
Condition 2 =and(c2>274,c2<365)
Colour Amber
Condition 3 = C2>364

C2
Condition 1 Cell Value is between 275 and 364
Colour Amber
Condition 2 Formula is =C2>=365

That should produce more meaningful figures too

Pedro
 
Upvote 0

Forum statistics

Threads
1,224,605
Messages
6,179,860
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top