ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Conditional formating dates (https://www.excelbanter.com/excel-worksheet-functions/263732-conditional-formating-dates.html)

Teeny

Conditional formating dates
 
I have a range of dates in a column and I would like it if I could highlight
any date that is more that 3 years old.

So if the date reads 02/10/2004 this should be highlighted red.

I would really appriciate a bit of help.

Luke M[_4_]

Conditional formating dates
 
CF formula is:

=DATEDIF(A2,TODAY(),"y")=3

--
Best Regards,

Luke M
"Teeny" wrote in message
...
I have a range of dates in a column and I would like it if I could
highlight
any date that is more that 3 years old.

So if the date reads 02/10/2004 this should be highlighted red.

I would really appriciate a bit of help.




Jacob Skaria

Conditional formating dates
 
1. Select the cell/Range (say A1:A10). Please note that the cell reference A1
mentioned in the formula is the active cell in the selection. Active cell
will have a white background even after selection
2. From menu FormatConditional Formatting
3. For Condition1Select 'Formula Is' and enter the below formula
=AND(A10,DATEDIF(A1,TODAY(),"y")3)

4. Click Format ButtonPattern and select your color (say Red)
5. Hit OK

PS: If you are using XL2007 Goto Home tabStylesConditional
FormattingManage rulesNew ruleUse a formula to determine which cells to
format. Enter the formula in the box below.

--
Jacob (MVP - Excel)


"Teeny" wrote:

I have a range of dates in a column and I would like it if I could highlight
any date that is more that 3 years old.

So if the date reads 02/10/2004 this should be highlighted red.

I would really appriciate a bit of help.



All times are GMT +1. The time now is 01:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com