Dates to numbers

J

John

Hi,
I am working on a spreadsheet and need to convert a resulting date (when
I subtract 2 dates say, 02/01/1996 from 22/04/1998) to a number showing
"Days:Months:Years".In the above example I should get 22:03:02. What formula
should I apply to the resulting column (from the subtraction of the dates)to
give me that result.Thanks in advance,
John
 
R

Ron de Bruin

Hi John

A formula from Norman Harker to do this with the dates in B5 and C5

=DATEDIF(B5,C5,"y") & " y " & DATEDIF(B5,C5,"ym") & " m " & DATEDIF(B5,C5,"md") & " d"

You can adapt it to your format
 

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