IF/Date formula

william11

New Member
Joined
Aug 11, 2014
Messages
21
I need a formula that evaluates a past date (E4) and returns:

0 if less than 12 months
1 when has been 1 year since E4, and during the course of year 1
2 when is has been 2 years since E4, and during the course of year 2
3 and so on...


thanks for any help
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hello,

I would try something like:
Code:
=ROUNDDOWN((TODAY()-E4)/365,0)

This determines the number of days between today and the date in E4, then divides by 365 days. This answer is then rounded down so that anything within a year is 0, during the year of 1 year old 1, etc.

Let me know if this works for you.

Regards,
Alex
 
Upvote 0
would this help?
=DATEDIF(E4,TODAY(),"Y")

I need a formula that evaluates a past date (E4) and returns:

0 if less than 12 months
1 when has been 1 year since E4, and during the course of year 1
2 when is has been 2 years since E4, and during the course of year 2
3 and so on...


thanks for any help
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,928
Members
449,094
Latest member
teemeren

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