Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Grd Grd is offline
external usenet poster
 
Posts: 118
Default Calculate age

Hi there,

How do I calcuate the age of a person if all I have is their date of birth
in a cell?

Is this possible in excel?

Thanks for your help

Suzanne
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4,624
Default Calculate age

One way:

=DATEDIF(A1,TODAY(),"y")

See

http://cpearson.com/excel/datedif.htm

for more options.

In article ,
Grd wrote:

Hi there,

How do I calcuate the age of a person if all I have is their date of birth
in a cell?

Is this possible in excel?

Thanks for your help

Suzanne

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,101
Default Calculate age

with the DOB in A1 try

=DATEDIF(A1,TODAY,"Y") & " Years, " & DATEDIF(A1,TODAY,"YM") & " Months, " &
DATEDIF(A1,TODAY,"MD") & " Days"



"Grd" wrote:

Hi there,

How do I calcuate the age of a person if all I have is their date of birth
in a cell?

Is this possible in excel?

Thanks for your help

Suzanne

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 4,624
Default Calculate age

Note that you need to be careful with this:

First, TODAY should be TODAY(), unless TODAY is a name in the workbook.

Second, given the way the "md" switch works, calculations are based on
the length of the first month. so:

A1: 31 January 2007
A2: 1 March 2007
A3: =DATEDIF(A1,A2,"Y") & " Years, " & DATEDIF(A1,A2,"YM") & "
Months, " & DATEDIF(A1,A2,"MD") & " Days"

returns

0 Years, 1 Months, -2 Days

in A3. That's usually not what is desired.



In article ,
Mike wrote:

with the DOB in A1 try

=DATEDIF(A1,TODAY,"Y") & " Years, " & DATEDIF(A1,TODAY,"YM") & " Months, " &
DATEDIF(A1,TODAY,"MD") & " Days"

  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3,101
Default Calculate age

sorry typo

=DATEDIF(A1,TODAY(),"Y") & " Years, " & DATEDIF(A1,TODAY(),"YM") & " Months,
" & DATEDIF(A1,TODAY(),"MD") & " Days"

"Mike" wrote:

with the DOB in A1 try

=DATEDIF(A1,TODAY,"Y") & " Years, " & DATEDIF(A1,TODAY,"YM") & " Months, " &
DATEDIF(A1,TODAY,"MD") & " Days"



"Grd" wrote:

Hi there,

How do I calcuate the age of a person if all I have is their date of birth
in a cell?

Is this possible in excel?

Thanks for your help

Suzanne

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 Susan Excel Worksheet Functions 1 January 30th 07 01:21 PM
How to calculate this bbc1 Excel Discussion (Misc queries) 2 September 24th 06 12:49 AM
How can I calculate.... mgarcia Excel Discussion (Misc queries) 3 February 8th 06 03:46 AM
How can i calculate only once? Marc G Excel Discussion (Misc queries) 3 August 11th 05 07:52 PM
Calculate only if... cribology - ExcelForums.com Excel Discussion (Misc queries) 3 July 26th 05 06:54 PM


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