Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
yancey04
 
Posts: n/a
Default write a formula to calculate age in yrs; 04/30/06 minus birthdate

I need to write a formula that calculates a childs age as of 04/30/2006 for
baseball or as of 01/01/06 for softball.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Philip J Smith
 
Posts: n/a
Default write a formula to calculate age in yrs; 04/30/06 minus birthdate

Try

=datedif(BirthDate,BenchmarkDate,"Y")

Regards

Phil Smith

"yancey04" wrote:

I need to write a formula that calculates a childs age as of 04/30/2006 for
baseball or as of 01/01/06 for softball.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BekkiM
 
Posts: n/a
Default write a formula to calculate age in yrs; 04/30/06 minus birthdate

To calculate age in years: ([Date] - [Birthdate])/365.25

Assuming you have the child's birthday in B1, "baseball" or "softball" in
C1, then D1 will be:
=IF(C1="baseball",(DATE(2006,04,30)-B1)/365.25,IF(C1="softball",(DATE(2006,01,01)-B1)/365.2,""))

"yancey04" wrote:

I need to write a formula that calculates a childs age as of 04/30/2006 for
baseball or as of 01/01/06 for softball.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BekkiM
 
Posts: n/a
Default write a formula to calculate age in yrs; 04/30/06 minus birthd

Philip: Where is the "DATEDIF" function? I don't see it my list. Is there
an Add-In I'm missing?

"Philip J Smith" wrote:

Try

=datedif(BirthDate,BenchmarkDate,"Y")

Regards

Phil Smith

"yancey04" wrote:

I need to write a formula that calculates a childs age as of 04/30/2006 for
baseball or as of 01/01/06 for softball.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default write a formula to calculate age in yrs; 04/30/06 minus birthd

Datedif is apparently from Lotus days and is only documented in 2000 but
supposedly works in the other versions as well. Since I am using 2000, let
me take a look ...
Okay, I see it in help, but not when I use paste function and look under the
all category.

--
Kevin Vaughn


"BekkiM" wrote:

Philip: Where is the "DATEDIF" function? I don't see it my list. Is there
an Add-In I'm missing?

"Philip J Smith" wrote:

Try

=datedif(BirthDate,BenchmarkDate,"Y")

Regards

Phil Smith

"yancey04" wrote:

I need to write a formula that calculates a childs age as of 04/30/2006 for
baseball or as of 01/01/06 for softball.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default write a formula to calculate age in yrs; 04/30/06 minus birthd

I should have mentioned in my previous post, I have used it in the past and I
do not have any add-ins installed. Or rather, I don't have any that include
this function. I did create and have installed an add-on that I got out of a
book.
--
Kevin Vaughn


"BekkiM" wrote:

Philip: Where is the "DATEDIF" function? I don't see it my list. Is there
an Add-In I'm missing?

"Philip J Smith" wrote:

Try

=datedif(BirthDate,BenchmarkDate,"Y")

Regards

Phil Smith

"yancey04" wrote:

I need to write a formula that calculates a childs age as of 04/30/2006 for
baseball or as of 01/01/06 for softball.

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BekkiM
 
Posts: n/a
Default write a formula to calculate age in yrs; 04/30/06 minus birthd

Thanks! I was able to use the function even though it's not listed--much
easier than my clunky "old-fashioned" method!

"Kevin Vaughn" wrote:

I should have mentioned in my previous post, I have used it in the past and I
do not have any add-ins installed. Or rather, I don't have any that include
this function. I did create and have installed an add-on that I got out of a
book.
--
Kevin Vaughn


"BekkiM" wrote:

Philip: Where is the "DATEDIF" function? I don't see it my list. Is there
an Add-In I'm missing?

"Philip J Smith" wrote:

Try

=datedif(BirthDate,BenchmarkDate,"Y")

Regards

Phil Smith

"yancey04" wrote:

I need to write a formula that calculates a childs age as of 04/30/2006 for
baseball or as of 01/01/06 for softball.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Kevin Vaughn
 
Posts: n/a
Default write a formula to calculate age in yrs; 04/30/06 minus birthd

Yes, I tried figuring a person's age using regular formulae and could come
close but couldn't get (my) exact age. Did a google search, found a datedif
formula and it came up with my correct age (though if it had shaved a few
years off, I guess I wouldn't have minded.)
--
Kevin Vaughn


"BekkiM" wrote:

Thanks! I was able to use the function even though it's not listed--much
easier than my clunky "old-fashioned" method!

"Kevin Vaughn" wrote:

I should have mentioned in my previous post, I have used it in the past and I
do not have any add-ins installed. Or rather, I don't have any that include
this function. I did create and have installed an add-on that I got out of a
book.
--
Kevin Vaughn


"BekkiM" wrote:

Philip: Where is the "DATEDIF" function? I don't see it my list. Is there
an Add-In I'm missing?

"Philip J Smith" wrote:

Try

=datedif(BirthDate,BenchmarkDate,"Y")

Regards

Phil Smith

"yancey04" wrote:

I need to write a formula that calculates a childs age as of 04/30/2006 for
baseball or as of 01/01/06 for softball.

  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chip Pearson
 
Posts: n/a
Default write a formula to calculate age in yrs; 04/30/06 minus birthd

The DATEDIF function is in all versions of Excel, but documented
only in Excel 2000. See www.cpearson.com/excel/datedif.htm for
details and documentation.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"BekkiM" wrote in message
...
Philip: Where is the "DATEDIF" function? I don't see it my
list. Is there
an Add-In I'm missing?

"Philip J Smith" wrote:

Try

=datedif(BirthDate,BenchmarkDate,"Y")

Regards

Phil Smith

"yancey04" wrote:

I need to write a formula that calculates a childs age as
of 04/30/2006 for
baseball or as of 01/01/06 for softball.



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
I need help to get formula to calculate royalties recouped with sa nono404 Excel Worksheet Functions 4 March 10th 05 09:20 PM
formula to calculate # of days between dates, excluding holidays abs2299 Excel Discussion (Misc queries) 8 March 3rd 05 02:21 AM
Write formula to add "1" to each number in a column GrannyLib Excel Worksheet Functions 3 January 11th 05 07:09 PM
Suddenly Excel can't calculate formula!!! Bob H Excel Worksheet Functions 2 November 30th 04 08:35 PM
How can I write an if-then formula for 0 or less than 0 in cell t. Baz1 Excel Worksheet Functions 1 November 30th 04 04:33 PM


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

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"