Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 465
Default Expanding Date formula


Hi

I use this formula to calculate how many months and days between two
dates :

=DATEDIF(C4,C6,"YM") & " Months, " & DATEDIF(C4,C6,"MD") & " Days"

However , it doesn't work when there is more than a year between the two
dates.

Can someone advice how to modify the formula so it incorporates the
extra multiples of 12 months if they are present? I only need to return
months and days.

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,045
Default Expanding Date formula

On Tue, 11 Feb 2014 22:51:11 +0000, Colin Hayes wrote:


Hi

I use this formula to calculate how many months and days between two
dates :

=DATEDIF(C4,C6,"YM") & " Months, " & DATEDIF(C4,C6,"MD") & " Days"

However , it doesn't work when there is more than a year between the two
dates.

Can someone advice how to modify the formula so it incorporates the
extra multiples of 12 months if they are present? I only need to return
months and days.

Thanks


cpearson.com has information regarding the datedif function.

Try changing "ym" to just "m"
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 465
Default Expanding Date formula



cpearson.com has information regarding the datedif function.

Try changing "ym" to just "m"



Hi

OK thanks for this. It's working fine now.

Grateful for your help.


Best Wishes ,
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
expanding a formula jrsrdcr Excel Discussion (Misc queries) 1 May 1st 09 06:45 PM
Expanding on a formula MartinW Excel Worksheet Functions 4 April 20th 06 01:06 PM
Expanding Formula Bar Domingo Excel Discussion (Misc queries) 4 December 26th 05 12:34 AM
expanding a start date and end date to show all the dates in a list musicman[_2_] Excel Programming 0 July 20th 05 08:47 PM
Help With Expanding A Formula Minitman Excel Worksheet Functions 7 January 18th 05 05:55 AM


All times are GMT +1. The time now is 02:27 AM.

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"