#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default age calculations

How can you calculate the age of a person on a given date (and knowing the
date of birth)? And how can you format cells to show age in years and months
- and calculate the difference between two eg the difference in years and
months between someone who is 10 years and 7 months and someone who is 11
years and 2 months?
And how can this be displayed in a chart?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default age calculations

Tulip

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

Birthdate in A1....................given date in B1

Watch for wordwrap.................above formula is one line.


Gord Dibben MS Excel MVP

On Sun, 8 Jul 2007 10:12:01 -0700, Tulip
wrote:

How can you calculate the age of a person on a given date (and knowing the
date of birth)? And how can you format cells to show age in years and months
- and calculate the difference between two eg the difference in years and
months between someone who is 10 years and 7 months and someone who is 11
years and 2 months?
And how can this be displayed in a chart?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 427
Default age calculations

The answer depends on how fussy you need / want to be about fractional
months. A person's exact age in terms of years is easy enough; months
are trickier because they are not the same number of days.

Here is a simplified way to do it, with the birthdate in A1 and the
given date in B1. Assume a month is 365 / 12 days. The Years
calculation is
=INT((B1-A1)/(365/12)/12)

The months calculation is
=MOD((B1-A1)/(365/12),12)

If you try this you'll likely get a result with decimal places in the
months response, so you may want to apply a rounding protocol or at
least be prepared to explain what the fractions truly mean.

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
IRR Calculations Allan Excel Discussion (Misc queries) 5 October 22nd 06 06:17 PM
Calculations seem to be off... RUSH2CROCHET Excel Discussion (Misc queries) 3 June 6th 06 05:22 PM
Calculations J. McGonigal Excel Worksheet Functions 4 April 25th 06 07:53 AM
how many calculations? Amie Excel Worksheet Functions 0 April 21st 06 08:04 PM
% calculations ChristyB Excel Worksheet Functions 4 February 16th 06 06:21 PM


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