Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2012, 02:27 AM
userman userman is offline calculate age Windows XP calculate age Office 2003
Advanced Beginner
calculate age
 
Join Date: Sep 2010
Posts: 52
userman is on a distinguished road
Default calculate age

hello!



I have a list/column of dates in 30/01/1949 format which are birth dates
I want to calculate the age of each person

how can I do it?

thanks!
Reply With Quote
  #2  
Old 06-01-2012, 02:37 AM
dazwm dazwm is offline calculate age Windows XP calculate age Office 2007
Advanced Beginner
 
Join Date: May 2012
Posts: 59
dazwm is on a distinguished road
Default

In A2 for example put a persons DOB i.e 13/08/1969 then in B2 enter

=DATEDIF(A2,TODAY(),"y")&" years "&DATEDIF(A2,TODAY(),"ym")&" months "&DATEDIF(A2,TODAY(),"md")&" days"

Copy down as needed.


The result will show the difference from the current date to include the number of years, months and days. The best news is that you don't have to update the formula if you open the file at a later date; the age will automatically recalculate based on the current date.
Reply With Quote
  #3  
Old 06-01-2012, 03:00 AM
userman userman is offline calculate age Windows XP calculate age Office 2003
Advanced Beginner
calculate age
 
Join Date: Sep 2010
Posts: 52
userman is on a distinguished road
Default

Quote:
Originally Posted by dazwm View Post
In A2 for example put a persons DOB i.e 13/08/1969 then in B2 enter

=DATEDIF(A2,TODAY(),"y")&" years "&DATEDIF(A2,TODAY(),"ym")&" months "&DATEDIF(A2,TODAY(),"md")&" days"

Copy down as needed.


The result will show the difference from the current date to include the number of years, months and days. The best news is that you don't have to update the formula if you open the file at a later date; the age will automatically recalculate based on the current date.

I get "the formula you typed contains an error :/
Reply With Quote
  #4  
Old 06-01-2012, 03:09 AM
dazwm dazwm is offline calculate age Windows XP calculate age Office 2007
Advanced Beginner
 
Join Date: May 2012
Posts: 59
dazwm is on a distinguished road
Default

Works fine for me
Reply With Quote
  #5  
Old 06-01-2012, 03:24 AM
dazwm dazwm is offline calculate age Windows XP calculate age Office 2007
Advanced Beginner
 
Join Date: May 2012
Posts: 59
dazwm is on a distinguished road
Default

Look at this
Attached Files
File Type: xls Book1.xls (13.5 KB, 10 views)
Reply With Quote
  #6  
Old 06-01-2012, 08:08 AM
userman userman is offline calculate age Windows XP calculate age Office 2003
Advanced Beginner
calculate age
 
Join Date: Sep 2010
Posts: 52
userman is on a distinguished road
Default

the format of the dates is different, maybe this is the problem?

is it possible to make a function that will work with any date formats?
Reply With Quote
  #7  
Old 06-01-2012, 08:18 AM
dazwm dazwm is offline calculate age Windows XP calculate age Office 2007
Advanced Beginner
 
Join Date: May 2012
Posts: 59
dazwm is on a distinguished road
Default

Quote:
Originally Posted by userman View Post
the format of the dates is different, maybe this is the problem?

is it possible to make a function that will work with any date formats?
This is the format for the date you specified, this is UK date format is that what you want?
Reply With Quote
  #8  
Old 06-02-2012, 03:39 PM
userman userman is offline calculate age Windows XP calculate age Office 2003
Advanced Beginner
calculate age
 
Join Date: Sep 2010
Posts: 52
userman is on a distinguished road
Default

the format I want is dd/mm/yyyy
Reply With Quote
  #9  
Old 06-02-2012, 10:59 PM
dazwm dazwm is offline calculate age Windows XP calculate age Office 2007
Advanced Beginner
 
Join Date: May 2012
Posts: 59
dazwm is on a distinguished road
Default

Quote:
Originally Posted by userman View Post
the format I want is dd/mm/yyyy
It does not matter the way the date is formatted as. Whether it is dd/mm/yyyy or mm/dd/yyyy the answer will still be the same. Please attach a sample workbook with what you have input so I can take a look.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
add values to dropdown selections and calculate guyhs Word 7 10-24-2012 05:11 PM
calculate age How to calculate percentages??? fabthi Excel 3 04-13-2012 12:08 PM
calculate age What formula should I use to calculate commission? grs Excel 3 02-21-2011 02:17 AM
Can't calculate formulas Cpat Excel 2 06-09-2010 02:07 PM
calculate age How to get cells to calculate time? jrasche2003@yahoo.com Excel 2 02-09-2007 07:10 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft