Advertisement

11.26.2005 at 07:42AM PST, ID: 21643657
[x]
Attachment Details

Date Difference Function

Asked by stevensont in Microsoft Excel Spreadsheet Software

Tags: date, difference, excel

Experts:

Is there a date difference function that returns the number of years, months, and days? I've been searching for a long time for something that would give me the correct  answer.
FROM: 02/02/1990
    TO:  01/21/1995
The answer should be 4 years, 11 months and 19 days.

I'm using a function that I don't know where it came from because I can't find any information on it in MS Excel help. However, it works like this:
=DATEDIF(F2,G2,"m")/12  when using the FROM and TO dates above gives the incorrect answer 4.9; close, but not correct.

So my question is, how do I create or find a function that is accurate. It would be great if it formatted the text as "4 years, 11 months and 19 days"

Thanks.Start Free Trial
[+][-]11.26.2005 at 07:48AM PST, ID: 15364968

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.26.2005 at 07:49AM PST, ID: 15364974

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Excel Spreadsheet Software
Tags: date, difference, excel
Sign Up Now!
Solution Provided By: byundt
Participating Experts: 1
Solution Grade: A
 
 
[+][-]11.26.2005 at 08:16AM PST, ID: 15365051

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32