Posted by admin on

Datediff in Excel

Another article on Excel idioms; this one’s about dates. It’ll be useful for some.
I want to create a number of frequency charts of a series of dates. Date arithmetic is notoriously hard and will rely on functions.
Here’s two ways of calculating the difference in years between a date and today, i.e. how old in years is this event?
=INT(YEAR(TODAY())-YEAR(eventdate))
=ROUNDDOWN(YEARFRAC(eventdate,TODAY(),1),0)
Featured Image:  from flickr, by Pedro Szeleky CC 2009 BY-NC-SA (This is cropped and shrunk.)


This site uses Akismet to reduce spam. Learn how your comment data is processed.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close