Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Date calculation

Hi,

I am trying to arrive at a date difference between 2 cells that will display
like 9 years, 10 months, 25 days. Does anyone have a suggestion?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Date calculation

Yes, here's one. With the earlier date in A1 and the later date in B1, try:-

=DATEDIF(A1,A2,"y") & " Years, " & DATEDIF(A1,A2,"ym") & " Months, " &
DATEDIF(A1,A2,"md") & " Days"

Mike

"KarenM" wrote:

Hi,

I am trying to arrive at a date difference between 2 cells that will display
like 9 years, 10 months, 25 days. Does anyone have a suggestion?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Date calculation

Thanks so much Mike, that's just what I needed. I was kinda on that track,
but it would have taken me much longer. You saved me a lot of time.

Karen


"Mike H" wrote:

Yes, here's one. With the earlier date in A1 and the later date in B1, try:-

=DATEDIF(A1,A2,"y") & " Years, " & DATEDIF(A1,A2,"ym") & " Months, " &
DATEDIF(A1,A2,"md") & " Days"

Mike

"KarenM" wrote:

Hi,

I am trying to arrive at a date difference between 2 cells that will display
like 9 years, 10 months, 25 days. Does anyone have a suggestion?

Thanks

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
A specific date used for calculation of a new date Ditte Excel Discussion (Misc queries) 7 July 17th 09 08:00 AM
Date Calculation (from entered date / 1yr later in next field) ajaminb Excel Worksheet Functions 6 September 29th 08 02:11 PM
End Date Calculation (adding a start date duration) Silena K-K Excel Discussion (Misc queries) 5 January 25th 08 04:27 PM
Tricky Date calculation: How to calculate a future date [email protected] Excel Discussion (Misc queries) 9 August 11th 06 04:24 AM
Coding to show first _weekday_ prior to a date, when date calculation happens to fall on weekend? StargateFan[_3_] Excel Programming 5 December 9th 04 09:06 AM


All times are GMT +1. The time now is 11:07 PM.

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

About Us

"It's about Microsoft Excel"