#1   Report Post  
JIM.H.
 
Posts: n/a
Default Q: age column

Hello,
I have a birthday column with YYYYMMDD format and I need to create an age
column. How can I do that?
Thanks,
Jim.

  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=INT((TODAY()-DATE(LEFT(A1,4),MONTH(MID(A1,5,2)),DAY(RIGHT(A1,2) )))/365)


"JIM.H." wrote in message
...
Hello,
I have a birthday column with YYYYMMDD format and I need to create an age
column. How can I do that?
Thanks,
Jim.



  #3   Report Post  
PC
 
Posts: n/a
Default

That formula will have errors when the date is near a person's birthday due
to leap year issues.


Try

=DATEDIF(startdate,enddate,"Y") for years

See XL help for more information on this formula.

HTH

PC

"N Harkawat" wrote in message
...
=INT((TODAY()-DATE(LEFT(A1,4),MONTH(MID(A1,5,2)),DAY(RIGHT(A1,2) )))/365)


"JIM.H." wrote in message
...
Hello,
I have a birthday column with YYYYMMDD format and I need to create an

age
column. How can I do that?
Thanks,
Jim.





  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 20 May 2005 08:26:02 -0700, JIM.H.
wrote:

Hello,
I have a birthday column with YYYYMMDD format and I need to create an age
column. How can I do that?
Thanks,
Jim.


With your birth date in A1:

=DATEDIF(TEXT(A1,"0000\/00\/00"),TODAY(),"y")

will give you the age in years.


--ron
  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 20 May 2005 08:26:02 -0700, JIM.H.
wrote:

Hello,
I have a birthday column with YYYYMMDD format and I need to create an age
column. How can I do that?
Thanks,
Jim.


My previous formula works for US regional settings. I'm not sure about other
countries.


--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
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
How to group similar column titles together???? vrk1 Excel Discussion (Misc queries) 2 April 30th 05 12:17 AM
Return Count for LAST NonBlank Cell in each Row Sam via OfficeKB.com Excel Worksheet Functions 12 April 17th 05 10:36 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
How do I reference every "n" cell in a column in Excel? Alma Excel Worksheet Functions 2 March 22nd 05 06:19 PM


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