Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Marty
 
Posts: n/a
Default converting months to years and months???

I have used the following formula to work out the difference between two days
and it provides me an answer in months.
=(YEAR(A4)-YEAR(A3))*12+MONTH(A4)-MONTH(A3)
However if the difference is 15 months, how do i convert this to read 1 year
and 3 months?
Thank you
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

With the date in A2:
=DATEDIF(A1,a2,"y")&" Years "&DATEDIF(A1,a2,"ym")&" Months"

You can find lots of information about =datedif() at Chip Pearson's site:
http://www.cpearson.com/excel/datedif.htm

Marty wrote:

I have used the following formula to work out the difference between two days
and it provides me an answer in months.
=(YEAR(A4)-YEAR(A3))*12+MONTH(A4)-MONTH(A3)
However if the difference is 15 months, how do i convert this to read 1 year
and 3 months?
Thank you


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate Years/Months Between Dates and then Average Missy Excel Discussion (Misc queries) 3 February 12th 05 04:19 AM
Converting months to years kevin Excel Worksheet Functions 1 January 20th 05 01:28 PM
years and months [email protected] Excel Worksheet Functions 5 January 8th 05 02:53 PM
Calculate months and years Ned Ludd Excel Discussion (Misc queries) 5 December 10th 04 01:57 PM
How do I display months and years between two dates JSmith Excel Discussion (Misc queries) 1 November 30th 04 04:41 PM


All times are GMT +1. The time now is 06:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"