Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 78
Default How do I calculate the age of a person from their ID no.?

I have a work sheet which provides the ID number of a person (the first 6
digits are the birth date of the person YYMMDD). Another column requests
age. How can I create a formula that will automatically calculate the age of
the person as at the current date?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default How do I calculate the age of a person from their ID no.?

On Fri, 29 May 2009 04:18:01 -0700, Tracey
wrote:

I have a work sheet which provides the ID number of a person (the first 6
digits are the birth date of the person YYMMDD). Another column requests
age. How can I create a formula that will automatically calculate the age of
the person as at the current date?


Ah, your question brings to mind the Year 2000 problem, which was due in part
to the custom of using only two digits to specify a year.

If no one was born in this century, then:

=DATEDIF(DATE(LEFT(A1,2),MID(A1,3,2),MID(A1,5,2)), TODAY(),"y")

But that may only be true for an unknown number of years, so you are going to
have to supply the possible age range for your persons in order to devise a
formula that will continue to work for the foreseeable future, or change your
ID's to use four digit years.
--ron
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
How to calculate age of a person? Grd New Users to Excel 2 August 28th 07 11:50 PM
how do I calculate the age of a person S Excel Worksheet Functions 5 March 13th 07 08:11 PM
Calculate needed gallons of water, based on weight of person Darryl Excel Worksheet Functions 8 January 12th 07 03:23 PM
How do I calculate the age of a person? Doug Mc New Users to Excel 3 May 2nd 05 10:38 PM


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