Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jrchappell75
 
Posts: n/a
Default Comparing Birthdate to specific date in the future

I an building a worksheet for baseball registration. I need to compare the
Birthdate to the date we use to determine playing age in a division. I have
attempted to use the =datedif(date1,date2(), "interval") where
date1=birthdate, date2=playing age date, Interval="y". The result is #ref!
error.

For example: We have said the players age on 05/01/2006 is the playing age
for the league. I want to compare the birthdate to 05/01/2005, and get an age
value.

I would like to be able to update it yearly so that next year I can siply
change the 05/01/2006 date to 05/01/2007 and recalculate the age value.

Is this possible?

Am I going about this the wrong way?

What am I doing wrong?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default Comparing Birthdate to specific date in the future

With the birthdate in cell A1:

For May 1, 2006

=DATEDIF(A1,DATE(YEAR(NOW()),5,1),"y")

or this, for May 1, 2005

=DATEDIF(A1,DATE(YEAR(NOW())-1,5,1),"y")

HTH,
Bernie
MS Excel MVP


"jrchappell75" wrote in message
...
I an building a worksheet for baseball registration. I need to compare the
Birthdate to the date we use to determine playing age in a division. I have
attempted to use the =datedif(date1,date2(), "interval") where
date1=birthdate, date2=playing age date, Interval="y". The result is #ref!
error.

For example: We have said the players age on 05/01/2006 is the playing age
for the league. I want to compare the birthdate to 05/01/2005, and get an age
value.

I would like to be able to update it yearly so that next year I can siply
change the 05/01/2006 date to 05/01/2007 and recalculate the age value.

Is this possible?

Am I going about this the wrong way?

What am I doing wrong?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
jrchappell75
 
Posts: n/a
Default Comparing Birthdate to specific date in the future

Wow That was fast. And it worked as well.

One other thing...
When I try to copy that the remaining column it copys the formula exactly.
How do I copy it to the remaining column so that the foruls compares the
birthdates for each player. There are close to 1000 players so doing it
manually wont work.

"Bernie Deitrick" wrote:

With the birthdate in cell A1:

For May 1, 2006

=DATEDIF(A1,DATE(YEAR(NOW()),5,1),"y")

or this, for May 1, 2005

=DATEDIF(A1,DATE(YEAR(NOW())-1,5,1),"y")

HTH,
Bernie
MS Excel MVP


"jrchappell75" wrote in message
...
I an building a worksheet for baseball registration. I need to compare the
Birthdate to the date we use to determine playing age in a division. I have
attempted to use the =datedif(date1,date2(), "interval") where
date1=birthdate, date2=playing age date, Interval="y". The result is #ref!
error.

For example: We have said the players age on 05/01/2006 is the playing age
for the league. I want to compare the birthdate to 05/01/2005, and get an age
value.

I would like to be able to update it yearly so that next year I can siply
change the 05/01/2006 date to 05/01/2007 and recalculate the age value.

Is this possible?

Am I going about this the wrong way?

What am I doing wrong?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bernie Deitrick
 
Posts: n/a
Default Comparing Birthdate to specific date in the future

Copy the cell with the formula, and paste it down the column. The A1 will increment when you do
that.... Make sure that you don'e have $'s in your cell reference: A1 and not $A$1, for example.

HTH,
Bernie
MS Excel MVP


"jrchappell75" wrote in message
...
Wow That was fast. And it worked as well.

One other thing...
When I try to copy that the remaining column it copys the formula exactly.
How do I copy it to the remaining column so that the foruls compares the
birthdates for each player. There are close to 1000 players so doing it
manually wont work.

"Bernie Deitrick" wrote:

With the birthdate in cell A1:

For May 1, 2006

=DATEDIF(A1,DATE(YEAR(NOW()),5,1),"y")

or this, for May 1, 2005

=DATEDIF(A1,DATE(YEAR(NOW())-1,5,1),"y")



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld
 
Posts: n/a
Default Comparing Birthdate to specific date in the future

On Tue, 10 Jan 2006 08:51:03 -0800, jrchappell75
wrote:

I an building a worksheet for baseball registration. I need to compare the
Birthdate to the date we use to determine playing age in a division. I have
attempted to use the =datedif(date1,date2(), "interval") where
date1=birthdate, date2=playing age date, Interval="y". The result is #ref!
error.

For example: We have said the players age on 05/01/2006 is the playing age
for the league. I want to compare the birthdate to 05/01/2005, and get an age
value.

I would like to be able to update it yearly so that next year I can siply
change the 05/01/2006 date to 05/01/2007 and recalculate the age value.

Is this possible?

Am I going about this the wrong way?

What am I doing wrong?


You've got an extra set of parentheses in your formula after date2.

If the year of interest is in A1, and the players DOB is in A2, then the
player's age on the date of interest will be:

=DATEDIF(A2,DATE(A1,5,1),"y")




--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 do I create a schedule from a list of dates ? Gavin Morris Charts and Charting in Excel 2 October 28th 10 04:08 PM
conditional format by comparing to current date Kitfox Excel Worksheet Functions 6 January 25th 07 09:16 AM
search for latest date Sue Excel Worksheet Functions 2 August 2nd 05 11:09 PM
Trying to make cell "date sensitive" to specific date ebuzz13 Excel Discussion (Misc queries) 1 January 19th 05 11:04 PM
How do I make a cell date specific to input a value on a specific. ebuzz13 Excel Discussion (Misc queries) 1 January 18th 05 05:53 PM


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