Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / February 2008

Tip: Looking for answers? Try searching our database.

Date difference

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Art Wrok - 20 Feb 2008 05:29 GMT
I would like a formula to determine if someone is 70 1/2 at the end of
a year. I used =DATEDIF(DateofBirth,EndofYear­,"y") but the result is
only accurate to a whole year, for example DateofBirth = 6/30/1937 and
EndofYear = 12/31/2007 gives 70.0 rather than 70.5. How can I do this?
Ron Rosenfeld - 20 Feb 2008 05:42 GMT
>I would like a formula to determine if someone is 70 1/2 at the end of
>a year. I used =DATEDIF(DateofBirth,EndofYear­,"y") but the result is
>only accurate to a whole year, for example DateofBirth = 6/30/1937 and
>EndofYear = 12/31/2007 gives 70.0 rather than 70.5. How can I do this?

=EndOfYear>=DATE(YEAR(dob)+70,MONTH(dob)+6,DAY(dob))

will return TRUE or FALSE depending on the age being 70.5 at the end of the
year, or not
--ron
T. Valko - 20 Feb 2008 05:47 GMT
Calculate the total months then divide by 12:

=DATEDIF(A1,B1,"m")/12

Format as GENERAL or NUMBER

Signature

Biff
Microsoft Excel MVP

I would like a formula to determine if someone is 70 1/2 at the end of
a year. I used =DATEDIF(DateofBirth,EndofYear­,"y") but the result is
only accurate to a whole year, for example DateofBirth = 6/30/1937 and
EndofYear = 12/31/2007 gives 70.0 rather than 70.5. How can I do this?
Rich/rerat - 20 Feb 2008 07:08 GMT
Art Wrok,
You can try the following:

A1            B1            C1            D1          E1
Name      DOB        YREnd    Age        Qualified
Column A & B should be formatted as Date mm/dd/yyyy

A2=Name
B2=6/30/1937
C2=12/31/2007 or =IF($A2="","",DATE(YEAR(NOW()),12,31) {if you want the
current year end}&{and drag down column}
D2: Put in formula: =IF($A2="","",ROUND(($C2-$B2)/365.25,1)    {and drag
down column}
E2: Put in formula: =IF($A2="","",IF($C2>=70.5,"Qualified","Not Qualified"))
{and drag down column}

If you want to use DateDif formula you can try this:
In Cell D2: =IF($A2="","",DATEDIF($A2,$B2,"m"))    {and drag down column}
In Cell E2: =IF($A2="","",IF($D2>=846,"Qualified","Not Qualified"))    {and
drag down column}
Signature

Add MS to your News Reader: news://msnews.microsoft.com
Rich/rerat
(RRR News)    <message rule>
<<Previous Text Snipped to Save Bandwidth When Appropriate>>

I would like a formula to determine if someone is 70 1/2 at the end of
a year. I used =DATEDIF(DateofBirth,EndofYear­,"y") but the result is
only accurate to a whole year, for example DateofBirth = 6/30/1937 and
EndofYear = 12/31/2007 gives 70.0 rather than 70.5. How can I do this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.