close

Hi,

Let me give you an actual example.

I have a column E with dates of births. In the other column, I have a
formula that calculates age of every employee basing on his date of birth.
Formula is as follows:

=DATEDIF(E4,TODAY(),quot;Yquot;)amp;quot; years, quot; amp; DATEDIF(E4,TODAY(),quot;ymquot;)amp;quot; months, quot; amp;
DATEDIF(E4,TODAY(),quot;mdquot;)amp;quot; daysquot;

E4 value is 27-May-1972, therefore result will display '33 years, 9 months,
14 days'

Now, when I mark the whole column, I use conditional formatting to display
age differently. Greater than 35 should color the cell yellow, less or equal
to 35 should fill blue. But it doesn't, it only fills cells with yellow.

How can I make it recognize age as presented above?

Thanks

Hi,

For you column containing your age set you conditional formatting to use
'Formula Is' and refer to your DOB column (E) - something like
'=DATEDIF(E1,TODAY(),quot;Yquot;)gt;35'.

Regards,

Chris.

--
Chris Marlow
MCSD.NET, Microsoft Office XP Masterquot;umba-srquot; wrote:

gt; Hi,
gt;
gt; Let me give you an actual example.
gt;
gt; I have a column E with dates of births. In the other column, I have a
gt; formula that calculates age of every employee basing on his date of birth.
gt; Formula is as follows:
gt;
gt; =DATEDIF(E4,TODAY(),quot;Yquot;)amp;quot; years, quot; amp; DATEDIF(E4,TODAY(),quot;ymquot;)amp;quot; months, quot; amp;
gt; DATEDIF(E4,TODAY(),quot;mdquot;)amp;quot; daysquot;
gt;
gt; E4 value is 27-May-1972, therefore result will display '33 years, 9 months,
gt; 14 days'
gt;
gt; Now, when I mark the whole column, I use conditional formatting to display
gt; age differently. Greater than 35 should color the cell yellow, less or equal
gt; to 35 should fill blue. But it doesn't, it only fills cells with yellow.
gt;
gt; How can I make it recognize age as presented above?
gt;
gt; Thanks

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()