IF statement help

afv123

New Member
Joined
Feb 11, 2016
Messages
15
I'm trying to create an IF statement that displays a "Yes" if the difference between two dates is greater than or equal to 3 years. Can anyone assist?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
There are lots of different ways, and it depends on how you want to define a year.
Your could incorporate the DATEDIF function (see: DATEDIF function - Microsoft Support), or just do a simple subtraction of the date, i.e.
Excel Formula:
=IF(A1-A2>=1095,"Yes","")
Note that 1095 is 365*3, which is the number of days in 3 years (Excel stores dates as numbers, specifically the number of days so subtracting two dates will results in the number of days between the two).
 
Upvote 0
Solution
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,201
Messages
6,123,617
Members
449,109
Latest member
Sebas8956

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top