LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 587
Default Calulating future Age

hi,

if i suppose the firts day is 2008-10-28 and this day is = 0 year, 0 month, 0 day
the second day is 2012-05-31
note that if you count the difference in number of days you must take into account leap years,
i do not did this for this example, i consider that these days are included in years and months

2007-10-28 0 year, 0 month, 0day
2008-10-28 1 year <-------------- leap year
2009-10-28 2 years
2010-10-28 3 years
2011-10-28 4 years
2011-11-28 1 month
2011-12-28 2 months
2012-01-28 3 months
2012-02-28 4 months <------------- leap year
2012-03-28 5 months
2012-04-28 6 months
2012-05-28 7 months
2012-05-29 1 day
2012-05-30 2 days
2012-05-31 3 days

today (2012-05-31) = 4 years, 7 months, 3 days

=TEXT(RIGHT(YEAR(DATE(DATEDIF(A2,B2,"y"),DATEDIF(A 2,B2,"ym"),DATEDIF(A2,B2,"md"))),2),"0")&" year(s) "
&MONTH(DATE(DATEDIF(A2,B2,"y"),DATEDIF(A2,B2,"ym") ,DATEDIF(A2,B2,"md")))&" month(s) "
&DAY(DATE(DATEDIF(A2,B2,"y"),DATEDIF(A2,B2,"ym"),D ATEDIF(A2,B2,"md")))&" day(s) "


in 6 months = 5 year(s) 1 month(s) 3 day(s)

=TEXT(RIGHT(YEAR(DATE(DATEDIF(A3,B3,"y"),DATEDIF(A 3,B3,"ym")+6,DATEDIF(A3,B3,"md"))),2),"0")&" year(s) "
&MONTH(DATE(DATEDIF(A3,B3,"y"),DATEDIF(A3,B3,"ym") +6,DATEDIF(A3,B3,"md")))&" month(s) "
&DAY(DATE(DATEDIF(A3,B3,"y"),DATEDIF(A3,B3,"ym")+6 ,DATEDIF(A3,B3,"md")))&" day(s) "


--
isabelle



Le 2012-05-30 11:09, Ginabops a écrit :
How do I formulate an age and what it would be in 6 months, 12 months,
and 18 months?




 
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
Help with calulating Null fields Roderic Excel Worksheet Functions 3 August 11th 08 10:29 PM
Calulating week # & Day # bj[_2_] Excel Worksheet Functions 2 May 4th 07 02:48 PM
reducing Calulating time harpscardiff Excel Discussion (Misc queries) 1 March 14th 06 12:26 PM
Calulating Age Formula YUMBUG Excel Worksheet Functions 3 August 26th 05 01:25 AM
Calulating the last sayurday of a week using vba ibeetb Excel Programming 2 August 15th 03 08:03 PM


All times are GMT +1. The time now is 08:33 AM.

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"