Harrywatson
Board Regular
- Joined
- Jan 20, 2014
- Messages
- 92
In column B I have numerous dates down the column displayed as --/--/----.
In column D I then have the ages relative to the dates in column B using the formula:
=DATEDIF(B1,NOW(),"m") &" months, " & DATEDIF(B1,NOW(),"md") &" days "
So I know have ages in column D such as '23 months 7 days' or '13 months 22 days'.
What I would like to know please is how to format the cells so that when there is an age that is under 16 months but over 11 months. The cell then becomes highlighted.
Eg. 12 months 4 days would be highlighted. 15 months 15 days would be a highlighted cell. 16 months 2 days wouldn't be a highlighted cell. Neither would be 10 months 6 days.
The answer to this would be greatly appreciated thanks Please ask questions if you need any more details. Thanks so much
In column D I then have the ages relative to the dates in column B using the formula:
=DATEDIF(B1,NOW(),"m") &" months, " & DATEDIF(B1,NOW(),"md") &" days "
So I know have ages in column D such as '23 months 7 days' or '13 months 22 days'.
What I would like to know please is how to format the cells so that when there is an age that is under 16 months but over 11 months. The cell then becomes highlighted.
Eg. 12 months 4 days would be highlighted. 15 months 15 days would be a highlighted cell. 16 months 2 days wouldn't be a highlighted cell. Neither would be 10 months 6 days.
The answer to this would be greatly appreciated thanks Please ask questions if you need any more details. Thanks so much