ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   write a formula to calculate age in yrs; 04/30/06 minus birthdate (https://www.excelbanter.com/excel-worksheet-functions/67887-write-formula-calculate-age-yrs%3B-04-30-06-minus-birthdate.html)

yancey04

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.

Philip J Smith

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.


BekkiM

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.


BekkiM

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.


Kevin Vaughn

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.


Kevin Vaughn

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.


BekkiM

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.


Kevin Vaughn

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.


Chip Pearson

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.





All times are GMT +1. The time now is 10:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com