A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date expires in 2 years



 
 
Thread Tools Display Modes
  #1  
Old September 22nd, 2008, 08:11 PM posted to microsoft.public.excel.worksheet.functions
Catguam
external usenet poster
 
Posts: 2
Default Date expires in 2 years

I am looking for a formula that would mark the cell as "EXPIRED" if the date
is 2 years or more.

My scenario is if a person is trained I need to be notified if the date
trained is 2 years or more because it means they need to be retrained.
  #2  
Old September 22nd, 2008, 08:37 PM posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom[_2_]
external usenet poster
 
Posts: 963
Default Date expires in 2 years

With the date you want to test against in A1

=IF(DATEDIF(A1,TODAY(),"y")=2, "train","Alright for now")

--


Regards,


Peo Sjoblom

"Catguam" wrote in message
news
I am looking for a formula that would mark the cell as "EXPIRED" if the
date
is 2 years or more.

My scenario is if a person is trained I need to be notified if the date
trained is 2 years or more because it means they need to be retrained.



  #3  
Old September 22nd, 2008, 09:01 PM posted to microsoft.public.excel.worksheet.functions
Catguam
external usenet poster
 
Posts: 2
Default Date expires in 2 years

Thank you.

"Peo Sjoblom" wrote:

With the date you want to test against in A1

=IF(DATEDIF(A1,TODAY(),"y")=2, "train","Alright for now")

--


Regards,


Peo Sjoblom

"Catguam" wrote in message
news
I am looking for a formula that would mark the cell as "EXPIRED" if the
date
is 2 years or more.

My scenario is if a person is trained I need to be notified if the date
trained is 2 years or more because it means they need to be retrained.




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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