Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jonas.ornborg
 
Posts: n/a
Default Conditional formatting and formula


Hi, I am trying to write a formula within the conditional formatting
dialog box. I have a column with dates and I wont the cell to become
red whenever the date in the cell is more then 3 years older then
todays date. Does anyone have an idea of how to write this formula?

I have tried this formula but it doesnt seem to work

=DATEDIF(J3;TODAY();"y"3)

All the best
Jonas


--
jonas.ornborg
------------------------------------------------------------------------
jonas.ornborg's Profile: http://www.excelforum.com/member.php...o&userid=32183
View this thread: http://www.excelforum.com/showthread...hreadid=543837

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mark Lincoln
 
Posts: n/a
Default Conditional formatting and formula

This way should work:

=DATEDIF(J3;TODAY();"y")2

First of all, you had the "3" test within the DATEDIF function.
Secondly, DATEDIF will return only the whole number of years between
the two dates. So if the formula equals 3, there are at least 3 years
between the dates. That's why you want to test for 2.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jonas.ornborg
 
Posts: n/a
Default Conditional formatting and formula


Thanks!
It worked perfect! I guessed I had written the formula wrong but
couldnt find out what.

Again, many thanks!

All the best Jonas:)


--
jonas.ornborg
------------------------------------------------------------------------
jonas.ornborg's Profile: http://www.excelforum.com/member.php...o&userid=32183
View this thread: http://www.excelforum.com/showthread...hreadid=543837

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mark Lincoln
 
Posts: n/a
Default Conditional formatting and formula

Glad to help. Thanks for the feedback.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conditional formatting: problem entering EOMONTH formula... Jonathan Cooper Excel Discussion (Misc queries) 0 February 6th 06 09:34 PM
conditional formatting: problem entering EOMONTH formula... Jonathan Cooper Excel Discussion (Misc queries) 1 February 6th 06 09:28 PM
Conditional formatting...cont. from 9/25 Guenzak Excel Discussion (Misc queries) 4 September 26th 05 10:55 PM
conditional formatting with formula mwc0914 Excel Worksheet Functions 2 July 20th 05 08:11 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM


All times are GMT +1. The time now is 08:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"