months/days between two dates shown as a fraction

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can someone help with a formula to calculate the months between two dated shown as a fraction where the answer is 5 months and 10 days.
 
Hi Alf!

To get months and days:

Where A1 contains the earliest date and B1 the latest date:

=DATEDIF(A1,B1,"m")&" months "&DATEDIF(A1,B1,"md")&" days"

For details of DATEDIF see:
Chip Pearson:
http://www.cpearson.com/excel/datedif.htm

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 
Hi Alf!

First define how long a month is.

--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 
Thanks very much Norman, this is the closest I get to solving my problem

Regard

Alf
 
Hi Alf!

Thanks for thanks.

You need to be aware that you will get unusual answers where the
starting date is 31st of a month and ending date is 1st of a month
following a month with less than 31 days.

A less confusing approach would be to use weeks and fractions of weeks
because weeks have a constant length (unless they're holidays <vbg>)


--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
(e-mail address removed)
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.
 

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

Back
Top