write a formula to calculate age in yrs; 04/30/06 minus birthdate

G

Guest

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.
 
G

Guest

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,""))
 
G

Guest

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

Guest

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.
 
G

Guest

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.
 
G

Guest

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

Guest

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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top