Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Calculate age based on birthdate & end date

I've been looking through past posts on the subject, and am still confused.
I am building a database of race participants which requires the age of each
racer ON race day (July 4th, 2007). There's got to be a way to do it using
the race day and the birthdates, but I can't quite figure it out - and it's
got to be exact, due to the age divisions - if a racer is 55 ON race day and
56 the day AFTER, he or she needs to show up as being 55 in the database.
I've got 7/4/07 loaded in cell J1, and birthdates starting in J3. Any ideas?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculate age based on birthdate & end date

Try:

=DATEDIF(A1,A2,"y") & " y, " & DATEDIF(A1,A2,"ym") & " m, " &
DATEDIF(A1,A2,"md") & " d"

Birthday in A1
Race day in A2

Mike

"Rachelle W." wrote:

I've been looking through past posts on the subject, and am still confused.
I am building a database of race participants which requires the age of each
racer ON race day (July 4th, 2007). There's got to be a way to do it using
the race day and the birthdates, but I can't quite figure it out - and it's
got to be exact, due to the age divisions - if a racer is 55 ON race day and
56 the day AFTER, he or she needs to show up as being 55 in the database.
I've got 7/4/07 loaded in cell J1, and birthdates starting in J3. Any ideas?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Calculate age based on birthdate & end date

Sorry I missed the bit about how your data are laid out. Put this in K3 and
drag down to give the ages of the people in J3 down

=DATEDIF(J3,J$1,"y") & " y, " & DATEDIF(J3,J$1,"ym") & " m, " &
DATEDIF(J3,J$1,"md") & " d"

Mike

"Rachelle W." wrote:

I've been looking through past posts on the subject, and am still confused.
I am building a database of race participants which requires the age of each
racer ON race day (July 4th, 2007). There's got to be a way to do it using
the race day and the birthdates, but I can't quite figure it out - and it's
got to be exact, due to the age divisions - if a racer is 55 ON race day and
56 the day AFTER, he or she needs to show up as being 55 in the database.
I've got 7/4/07 loaded in cell J1, and birthdates starting in J3. Any ideas?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Calculate age based on birthdate & end date

Perfect! I've never used DATEDIF before, and all the extra stuff about
months and days was confusing me. It works now.
Thanks!
Rachelle

"Sandy Mann" wrote:

Try:

=DATEDIF(J3,J1,"y")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Rachelle W." <Rachelle wrote in message
...
I've been looking through past posts on the subject, and am still
confused.
I am building a database of race participants which requires the age of
each
racer ON race day (July 4th, 2007). There's got to be a way to do it
using
the race day and the birthdates, but I can't quite figure it out - and
it's
got to be exact, due to the age divisions - if a racer is 55 ON race day
and
56 the day AFTER, he or she needs to show up as being 55 in the database.
I've got 7/4/07 loaded in cell J1, and birthdates starting in J3. Any
ideas?






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Calculate age based on birthdate & end date

Between you and Sandy, I got it - didn't need the month/day calculations
returned (just the age in years), so all that "extra" stuff in the formula
was confusing me.
Thanks!
Rachelle

"Mike H" wrote:

Sorry I missed the bit about how your data are laid out. Put this in K3 and
drag down to give the ages of the people in J3 down

=DATEDIF(J3,J$1,"y") & " y, " & DATEDIF(J3,J$1,"ym") & " m, " &
DATEDIF(J3,J$1,"md") & " d"

Mike

"Rachelle W." wrote:

I've been looking through past posts on the subject, and am still confused.
I am building a database of race participants which requires the age of each
racer ON race day (July 4th, 2007). There's got to be a way to do it using
the race day and the birthdates, but I can't quite figure it out - and it's
got to be exact, due to the age divisions - if a racer is 55 ON race day and
56 the day AFTER, he or she needs to show up as being 55 in the database.
I've got 7/4/07 loaded in cell J1, and birthdates starting in J3. Any ideas?

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Calculate age based on birthdate & end date

*grin* Refreshed my memory regarding absolute references last week - but
thanks for the reminder. I originally created the spreadsheet in Open
Office, but the formula didn't "translate" to Excel, and there was,
apparently, quite the bruhaha at the first packet pick-up session the other
night. 'Tis fixed now, though, so we're aces.
Rachelle

"Sandy Mann" wrote:

You're very welcome. Mike picked up on the part that I missed. If you want
to copy the formula down using the fill handle make the J1 reference
absolute:

=DATEDIF(J3,$J$1,"y")

DATEDIF() is only documented in XL2000 but has been in all versions since
XL95
--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Rachelle W." wrote in message
...
Perfect! I've never used DATEDIF before, and all the extra stuff about
months and days was confusing me. It works now.
Thanks!
Rachelle

"Sandy Mann" wrote:

Try:

=DATEDIF(J3,J1,"y")

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Rachelle W." <Rachelle wrote in message
...
I've been looking through past posts on the subject, and am still
confused.
I am building a database of race participants which requires the age of
each
racer ON race day (July 4th, 2007). There's got to be a way to do it
using
the race day and the birthdates, but I can't quite figure it out - and
it's
got to be exact, due to the age divisions - if a racer is 55 ON race
day
and
56 the day AFTER, he or she needs to show up as being 55 in the
database.
I've got 7/4/07 loaded in cell J1, and birthdates starting in J3. Any
ideas?








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 age from today's date (changes daily) and birthdate Milkmaiden Excel Discussion (Misc queries) 4 December 31st 06 09:43 PM
How do I calculate age from birthdate to present in Excel? Jerry Smith Excel Worksheet Functions 4 November 16th 06 06:01 PM
calculate future age date by birthdate Inquiring Mine Excel Discussion (Misc queries) 1 September 14th 06 01:24 AM
write a formula to calculate age in yrs; 04/30/06 minus birthdate yancey04 Excel Worksheet Functions 8 January 28th 06 10:00 PM
How do I calculate an age from a birthdate in excel? CFenton Excel Worksheet Functions 1 November 29th 04 05:22 PM


All times are GMT +1. The time now is 03:47 PM.

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"