I have a column that contains issue dates, A1= 01/01/2008. And the second column contains a start date, B1= 02/01/2009. What I want to do is count how many months/years have passed from the date in A1.
Please help!
I have a column that contains issue dates, A1= 01/01/2008. And the second column contains a start date, B1= 02/01/2009. What I want to do is count how many months/years have passed from the date in A1.
Please help!
Hello
Enter following formula in C1
=DATEDIF(A1,B1,"m") This will give u months
=DATEDIF(A1,B1,"y") This will give u years
Or maybe
=DATEDIF(A1,B1,"y") & " years, " & DATEDIF(A1,B1,"ym") & " months"
oldchippy
-------------
![]()
![]()
Blessed are those who can give without remembering and take without forgetting
If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.
Click here >>> Top Excel links for beginners to Experts
Forum Rules >>>Please don't forget to read these
hi,
To add to Vandanavai's answer, Chip's below page provides an explanation & further examples of the DateDif function: http://www.cpearson.com/excel/datedif.aspx
hth
Rob
Rob Brockett
Kiwi in the UK
Always learning & the best way to learn is to experience...
Similar problem with an added step. I need to return how many months have passed to the end of the year, since a start date. So let's say my A1 is 02/01/2017 and the answer is 11 months. Then for A2, the date is a year later, 02/01/2018 and I need to return 23 months and so on with an offset end date of 4/30/2028 returning 123 months. Any ideas? I need to automate this so if I change a constant 123 months, it will return the proper values every year.
Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.
If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.
Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks