Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Calculate duration (#yrs., # mos.)

Sorry if this has already been posted/answered; but I'm not having any luck
finding it!

What I need to do is calculate the duration of a condition in years and
months. i.e. Start = 6/1/01; End = 9/30/03 would return 2 yrs., 4 mos.

To complicate matters further, certain conditions are necessary in rtegards
to the number of months. If the remaining number of days total between 0 and
14, it should round down to the lesser whole month; between 15 and 28, I need
the number of months to return a ".5" at the end; between 29 and 30, it
should round up to the next whole month.

Therefore,
Start = 6/1/01; End = 9/9/03 would return "2 yrs., 3 mos."
Start = 6/1/01; End = 9/19/03 would return "2 yrs., 3.5 mos."
Start = 6/1/01; End = 9/29/03 would return "2 yrs., 4 mos."


Hope I explained this correctly!
I'm using Excel 2003.

Thanks in advance for any help!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Calculate duration (#yrs., # mos.)

Hi,

With the earlier date in a1 try this

=DATEDIF(A1,B1,"y")&" yrs
"&IF(DATEDIF(A1,B1,"md")<15,DATEDIF(A1,B1,"ym"),IF (DATEDIF(A1,B1,"md")<29,DATEDIF(A1,B1,"ym")+0.5,DA TEDIF(A1,B1,"ym")+1))&" Mths"

Mike

"CherylC" wrote:

Sorry if this has already been posted/answered; but I'm not having any luck
finding it!

What I need to do is calculate the duration of a condition in years and
months. i.e. Start = 6/1/01; End = 9/30/03 would return 2 yrs., 4 mos.

To complicate matters further, certain conditions are necessary in rtegards
to the number of months. If the remaining number of days total between 0 and
14, it should round down to the lesser whole month; between 15 and 28, I need
the number of months to return a ".5" at the end; between 29 and 30, it
should round up to the next whole month.

Therefore,
Start = 6/1/01; End = 9/9/03 would return "2 yrs., 3 mos."
Start = 6/1/01; End = 9/19/03 would return "2 yrs., 3.5 mos."
Start = 6/1/01; End = 9/29/03 would return "2 yrs., 4 mos."


Hope I explained this correctly!
I'm using Excel 2003.

Thanks in advance for any help!!!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 144
Default Calculate duration (# yrs., # mos.)

By george, I think you've got it - thanks so much! My head was spinning
trying to figure that out!!!
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 duration day +1 vezerid Excel Worksheet Functions 1 May 23rd 07 07:29 PM
Calculate duration day +1 vezerid Excel Worksheet Functions 0 May 23rd 07 05:03 PM
Calculate duration day +1 Marc S. Excel Worksheet Functions 2 May 23rd 07 03:27 PM
Calculate duration in Excel 2000 Babette Excel Worksheet Functions 1 November 22nd 05 11:21 PM
Calculate Duration. Art Excel Discussion (Misc queries) 6 September 5th 05 01:03 AM


All times are GMT +1. The time now is 06:53 PM.

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

About Us

"It's about Microsoft Excel"