Calculating Days Elasped

P

Popey

Hi

Hopefull this will be a simple task for somebody to help this simple Excel
user out :)

In Cell A1 I have a set date (12 Apr 09).

In Cell B1 I would like to be displayed the time elasped in **y **m **d
(double digit years, months, days) since the date in A1 and today's date.

Any help would be greatly appreciated.

Thank you.
 
R

Ron Rosenfeld

Hi

Hopefull this will be a simple task for somebody to help this simple Excel
user out :)

In Cell A1 I have a set date (12 Apr 09).

In Cell B1 I would like to be displayed the time elasped in **y **m **d
(double digit years, months, days) since the date in A1 and today's date.

Any help would be greatly appreciated.

Thank you.

Since neither Years nor Months have a precisely defined number of days, you may
get unexpected answers.

However, this is one way that will work most of the time:

=DATEDIF(A1,TODAY(),"y") & " yrs " &
DATEDIF(A1,TODAY(),"ym") & " months " &
DATEDIF(A1,TODAY(),"md") & " days"

See http://www.cpearson.com/excel/datedif.aspx for documentation for the
DATEDIF function, which is only in Excel 2000 HELP, but is in most versions of
Excel since 97.
--ron
 
M

Mike H

try

=DATEDIF(A1,TODAY(),"y")&" Y "&DATEDIF(A1,TODAY(),"ym")& " M
"&DATEDIF(A1,TODAY(),"md")&" d"

However you need to be aware that this can throw up odd results. Try this
day combination for example

31 Jan 1951
01 Mar 2008
which gives
57 years, 1 months, -1 days


Mike
 
R

Ron Rosenfeld

=DATEDIF(A1,TODAY(),"y") & " yrs " &
DATEDIF(A1,TODAY(),"ym") & " months " &
DATEDIF(A1,TODAY(),"md") & " days"

or, to more precisely comply with your request:

=DATEDIF(A1,TODAY(),"y") & " y " &
DATEDIF(A1,TODAY(),"ym") & " m " &
DATEDIF(A1,TODAY(),"md") & " d"
--ron
 
P

Popey

Hi Mike H & Ron

Very many thanks for your quick and helpful replies. Both formulas did the
job. :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top