Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Calculate diiference between 2 dates

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: 3,101
Default Calculate diiference between 2 dates

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

should do the trick with the dates in A1 & A2

Mike

"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



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Calculate diiference between 2 dates

Hi John,

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

For info about the DATEDIF function, look he

http://www.cpearson.com/excel/datedif.htm
--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Jester" wrote in message ...
|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
|
|


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Calculate diiference between 2 dates

Thankyou very much!!!
"Mike" wrote in message
...
=DATEDIF(A1,A2,"y") & " years, " & DATEDIF(A1,A2,"ym") & " months, " &
DATEDIF(A1,A2,"md") & " days"

should do the trick with the dates in A1 & A2

Mike

"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





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Calculate diiference between 2 dates

Thankyou very much!!!!
"Niek Otten" wrote in message
...
Hi John,

=DATEDIF(A1,A2,"y") & " Years " & DATEDIF(A1,A2,"ym") & " months and " &

DATEDIF(A1,A2,"md") & " days"

For info about the DATEDIF function, look he

http://www.cpearson.com/excel/datedif.htm
--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Jester" wrote in message

...
|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
|
|






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 268
Default Calculate diiference between 2 dates

I've run a quick check on this formula. It doesn't seem to include
additional leap year days.

Regards.

Bill Ridgeway
Computer Solutions

"Mike" wrote in message
...
=DATEDIF(A1,A2,"y") & " years, " & DATEDIF(A1,A2,"ym") & " months, " &
DATEDIF(A1,A2,"md") & " days"

should do the trick with the dates in A1 & A2

Mike

"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





  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 268
Default Calculate diiference between 2 dates

On reflection I suppose it wouldn't - and rightfully so. The possible
danger in calculating using year and month is that they are not a standard
length. Days on the other hand is a much more precise measure.

There is one perennial trap when calculating the period between two dates.
The answer lies in whether or not you are counting gross or net days. In a
situation of, say, the payment of a pension due in a year, the number of
days in payment is 365 (366). In a situation of, the number of days
available to do something, the number of days is 364 (365).

Regards.

Bill Ridgeway
Computer Solutions

"Bill Ridgeway" wrote in message
...
I've run a quick check on this formula. It doesn't seem to include
additional leap year days.

Regards.

Bill Ridgeway
Computer Solutions

"Mike" wrote in message
...
=DATEDIF(A1,A2,"y") & " years, " & DATEDIF(A1,A2,"ym") & " months, " &
DATEDIF(A1,A2,"md") & " days"

should do the trick with the dates in A1 & A2

Mike

"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







  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default Calculate diiference between 2 dates

Chhers Bill , in my case I am more than happy with what the formula does.
It meets my needs precisely


John
"Bill Ridgeway" wrote in message
...
On reflection I suppose it wouldn't - and rightfully so. The possible
danger in calculating using year and month is that they are not a standard
length. Days on the other hand is a much more precise measure.

There is one perennial trap when calculating the period between two dates.
The answer lies in whether or not you are counting gross or net days. In

a
situation of, say, the payment of a pension due in a year, the number of
days in payment is 365 (366). In a situation of, the number of days
available to do something, the number of days is 364 (365).

Regards.

Bill Ridgeway
Computer Solutions

"Bill Ridgeway" wrote in message
...
I've run a quick check on this formula. It doesn't seem to include
additional leap year days.

Regards.

Bill Ridgeway
Computer Solutions

"Mike" wrote in message
...
=DATEDIF(A1,A2,"y") & " years, " & DATEDIF(A1,A2,"ym") & " months, " &
DATEDIF(A1,A2,"md") & " days"

should do the trick with the dates in A1 & A2

Mike

"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
Calculate dates Carla Excel Worksheet Functions 1 May 4th 06 11:56 PM
calculate dates [email protected] Excel Discussion (Misc queries) 2 November 21st 05 07:04 PM
How do I calculate the difference between 2 dates (m,d,y) ? ady_sandu Excel Worksheet Functions 8 September 29th 05 05:09 PM
How do I calculate an age from 2 dates? UMMY Excel Worksheet Functions 3 August 2nd 05 10:36 PM
How do I calculate dates? MKChick Excel Worksheet Functions 2 April 15th 05 04:53 PM


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