Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 110
Default Calculating an age from 2 dates

I am trying to calculate someone's age on a date that is after their
birthday. I know how to do the calculation if I am going from a later date
to an earlier date but how do I go from an earlier date to a later date? for
example,
birthdate visit date
1 12/25/72 8/28/2007

Is there a calculation that can show how old the person was on the visit date?

Thank you!
--
Terri
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Calculating an age from 2 dates

Chip Pearson has some very nice notes:
http://www.cpearson.com/excel/datedif.aspx

Terri wrote:

I am trying to calculate someone's age on a date that is after their
birthday. I know how to do the calculation if I am going from a later date
to an earlier date but how do I go from an earlier date to a later date? for
example,
birthdate visit date
1 12/25/72 8/28/2007

Is there a calculation that can show how old the person was on the visit date?

Thank you!
--
Terri


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Calculating an age from 2 dates

Try this
=INT((birthdate - visit date)/365.25)

Put this into cell C1
=INT((A1-B1)/365.25)

"Terri" wrote:

I am trying to calculate someone's age on a date that is after their
birthday. I know how to do the calculation if I am going from a later date
to an earlier date but how do I go from an earlier date to a later date? for
example,
birthdate visit date
1 12/25/72 8/28/2007

Is there a calculation that can show how old the person was on the visit date?

Thank you!
--
Terri

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default Calculating an age from 2 dates

Sorry try this instead of my last post
=INT((visit date - birthdate)/365.25)

Put this into cell C1
=INT((B1-A1)/365.25)

"Mike" wrote:

Try this
=INT((birthdate - visit date)/365.25)

Put this into cell C1
=INT((A1-B1)/365.25)

"Terri" wrote:

I am trying to calculate someone's age on a date that is after their
birthday. I know how to do the calculation if I am going from a later date
to an earlier date but how do I go from an earlier date to a later date? for
example,
birthdate visit date
1 12/25/72 8/28/2007

Is there a calculation that can show how old the person was on the visit date?

Thank you!
--
Terri

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default Calculating an age from 2 dates

Birthdate in A1 and Visit date in A2...

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

Jim Thomlinson


"Terri" wrote:

I am trying to calculate someone's age on a date that is after their
birthday. I know how to do the calculation if I am going from a later date
to an earlier date but how do I go from an earlier date to a later date? for
example,
birthdate visit date
1 12/25/72 8/28/2007

Is there a calculation that can show how old the person was on the visit date?

Thank you!
--
Terri

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
calculating between 2 given dates spudsnruf Excel Discussion (Misc queries) 7 March 28th 08 05:08 PM
calculating dates spudpeeps New Users to Excel 2 December 5th 07 07:53 PM
calculating due dates Ndstc1 Excel Discussion (Misc queries) 2 November 8th 07 08:16 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
calculating with dates DzEK Excel Discussion (Misc queries) 6 July 2nd 05 12:24 AM


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