#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Date String

I have 2 dates and I want to calculate the difference expressed as the
following string:

(eg) 9 Years 3 months and 13 days

Can anyone help?

Many Thanks

John - Sydney Aust.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 76
Default Date String

Hi John

Assuming earlier date in A1 and later date in A2 then you can use the
following formula:

=DATEDIF(A1,A2,"y") & " years " & DATEDIF(A1,A2,"ym") & " months and "
& DATEDIF(A1,A2,"md") & " days"

Hope this helps!

Richard


On 28 Feb, 09:35, "Jester" wrote:
I have 2 dates and I want to calculate the difference expressed as the
following string:

(eg) 9 Years 3 months and 13 days

Can anyone help?

Many Thanks

John - Sydney Aust.



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
How to convert string to date phil Excel Worksheet Functions 2 October 2nd 06 06:01 PM
How to parse a string with a date? [email protected] Excel Worksheet Functions 1 June 13th 06 07:46 AM
extract date from string kdp145 Excel Worksheet Functions 3 March 3rd 06 02:54 PM
convert string to date Sean Excel Worksheet Functions 5 March 1st 06 09:54 PM
Convert Date to STring tonymaguire Excel Discussion (Misc queries) 9 February 15th 06 11:33 AM


All times are GMT +1. The time now is 12:36 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"