A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Date String



 
 
Thread Tools Display Modes
  #1  
Old February 28th, 2007, 09:35 AM posted to microsoft.public.excel.misc
Jester
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  
Old February 28th, 2007, 10:00 AM posted to microsoft.public.excel.misc
RichardSchollar[_2_]
external usenet poster
 
Posts: 64
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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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