Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rameris
 
Posts: n/a
Default Calculation between two dates

I need to find out the amount of time between two dates for filling out
funeral benefits. The form asks how long the person has been alive in Years
Months and Days.

I would like to know if I put for instance 10/21/1955 in say A1 as the birth
date and 01/25/2006 in B1 as the date of death. So what is the formula, if
one, to calculate the time in years months and days that has passed between
the two dates?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gary''s Student
 
Posts: n/a
Default Calculation between two dates

Yes:


See:

http://www.cpearson.com/excel/datedif.htm
--
Gary''s Student


"Rameris" wrote:

I need to find out the amount of time between two dates for filling out
funeral benefits. The form asks how long the person has been alive in Years
Months and Days.

I would like to know if I put for instance 10/21/1955 in say A1 as the birth
date and 01/25/2006 in B1 as the date of death. So what is the formula, if
one, to calculate the time in years months and days that has passed between
the two dates?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rameris
 
Posts: n/a
Default Calculation between two dates

Well I guess I am the thickest individual in the solar system but doesn't
that tell me either how many years OR months OR days? I need to know how
may of each for example in

"Gary''s Student" wrote:

Yes:


See:

http://www.cpearson.com/excel/datedif.htm
--
Gary''s Student


"Rameris" wrote:

I need to find out the amount of time between two dates for filling out
funeral benefits. The form asks how long the person has been alive in Years
Months and Days.

I would like to know if I put for instance 10/21/1955 in say A1 as the birth
date and 01/25/2006 in B1 as the date of death. So what is the formula, if
one, to calculate the time in years months and days that has passed between
the two dates?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Chip Pearson
 
Posts: n/a
Default Calculation between two dates

The formula on the "Calculating A Person's Age" section of the
web page will return a string stating how many years, months, and
days a person has been alive.

=DATEDIF(A1,B1,"y") & " years, " & DATEDIF(A1,B1,"ym") & "
months, " & DATEDIF(A1,B1,"md") & " days"

where A1 is birthdate and B1 is death date.


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




"Rameris" wrote in message
...
Well I guess I am the thickest individual in the solar system
but doesn't
that tell me either how many years OR months OR days? I need
to know how
may of each for example in

"Gary''s Student" wrote:

Yes:


See:

http://www.cpearson.com/excel/datedif.htm
--
Gary''s Student


"Rameris" wrote:

I need to find out the amount of time between two dates for
filling out
funeral benefits. The form asks how long the person has
been alive in Years
Months and Days.

I would like to know if I put for instance 10/21/1955 in say
A1 as the birth
date and 01/25/2006 in B1 as the date of death. So what is
the formula, if
one, to calculate the time in years months and days that has
passed between
the two dates?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rameris
 
Posts: n/a
Default Calculation between two dates

If you could see me I'd be bowing to you in homage..


Thank-you very much


"Chip Pearson" wrote:

The formula on the "Calculating A Person's Age" section of the
web page will return a string stating how many years, months, and
days a person has been alive.

=DATEDIF(A1,B1,"y") & " years, " & DATEDIF(A1,B1,"ym") & "
months, " & DATEDIF(A1,B1,"md") & " days"

where A1 is birthdate and B1 is death date.


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




"Rameris" wrote in message
...
Well I guess I am the thickest individual in the solar system
but doesn't
that tell me either how many years OR months OR days? I need
to know how
may of each for example in

"Gary''s Student" wrote:

Yes:


See:

http://www.cpearson.com/excel/datedif.htm
--
Gary''s Student


"Rameris" wrote:

I need to find out the amount of time between two dates for
filling out
funeral benefits. The form asks how long the person has
been alive in Years
Months and Days.

I would like to know if I put for instance 10/21/1955 in say
A1 as the birth
date and 01/25/2006 in B1 as the date of death. So what is
the formula, if
one, to calculate the time in years months and days that has
passed between
the two dates?






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rameris
 
Posts: n/a
Default Calculation between two dates

I hope you don't mind answering another question but I used the same basic
formula with two different dates.

The results were correct as I now have

XX Years XX months and XX days for a calculation of a person's age

YY years YY months and YY days for a calculation of a person's time with the
company

When I tried to add those two numbers by simply putting for example
@sum(d4+d5) I got a # VALUE error

The reason I wanted to add those two was a person can retire from our
company when a combination of their age and years of service hit 80 combined
total.

Can you explain what I'm doing wrong in that case?

"Chip Pearson" wrote:

The formula on the "Calculating A Person's Age" section of the
web page will return a string stating how many years, months, and
days a person has been alive.

=DATEDIF(A1,B1,"y") & " years, " & DATEDIF(A1,B1,"ym") & "
months, " & DATEDIF(A1,B1,"md") & " days"

where A1 is birthdate and B1 is death date.


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




"Rameris" wrote in message
...
Well I guess I am the thickest individual in the solar system
but doesn't
that tell me either how many years OR months OR days? I need
to know how
may of each for example in

"Gary''s Student" wrote:

Yes:


See:

http://www.cpearson.com/excel/datedif.htm
--
Gary''s Student


"Rameris" wrote:

I need to find out the amount of time between two dates for
filling out
funeral benefits. The form asks how long the person has
been alive in Years
Months and Days.

I would like to know if I put for instance 10/21/1955 in say
A1 as the birth
date and 01/25/2006 in B1 as the date of death. So what is
the formula, if
one, to calculate the time in years months and days that has
passed between
the two dates?




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Calculation between two dates

You are trying to add two strings of text, so you get the #VALUE error.

Pete

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rameris
 
Posts: n/a
Default Calculation between two dates

Thanks Pete.. at lease I know why.. but do you know how to correct the problem?

"Pete" wrote:

You are trying to add two strings of text, so you get the #VALUE error.

Pete


  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Calculation between two dates

Assuming you have two connected dates in A1 and B1 (eg date of birth
and today( ) ), and two more dates in A3 and B3, the following formula
in, say, B6 will give you almost what you want:

=(DATEDIF(A1,B1,"y")+DATEDIF(A3,B3,"y")) & " years, " &
(DATEDIF(A1,B1,"ym")+DATEDIF(A3,B3,"ym")) & " months, " &
(DATEDIF(A1,B1,"md")+DATEDIF(A3,B3,"md")) & " days"

- all one formula. Unfortunately, this can give return values like;

65 years, 14 months, 23 days

and I'm not sure how to correct the number of months (I've never used
DATEDIF before!)

Here's an alternative, using the same initial dates where dates in B
are later than those in A:

=TEXT((B1+B3-A1-A3)/365.25,0)&" years,
"&TEXT((MOD((B1+B3-A1-A3),365.25)),0)&" days"

and this returns values like:

66 years, 82 days

although if you use 365 days in the formula instead of 365.25 with the
same dates that I did then it would show 66 years, 98 days

Take your pick, and I hope you can make some use of them.

Pete

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
daddylonglegs
 
Posts: n/a
Default Calculation between two dates


If your date of birth is in A2 and hire date is in B2 this should give
the combined age and length of service as of today

=DATEDIF(A2+B2,NOW()*2,"y")&" years, "&DATEDIF(A2+B2,NOW()*2,"ym")&"
months, "&DATEDIF(A2+B2,NOW()*2,"md")&" days"

Of course if this were to give a result of, say, 70 years then there
would only be 5 years until retirement because each year that passes
counts twice, once towards age and once on length of service.

The calculation is necessarily an approximation because of variable
month lengths.

As you can appreciate, that DATEDIF construction is great for showing
ages etc. but not fantastic for calculations. You could calculate an
employees date of retirement based on your criteria using this
formula.

=B2+(A2-B2+365.25*80)/2

format as date

Again this is an approximation based on 365¼ days in a year....


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=505391



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Rameris
 
Posts: n/a
Default Calculation between two dates

Thank you Pete .. it worked perfectly and I even understand it.

"Pete" wrote:

Assuming you have two connected dates in A1 and B1 (eg date of birth
and today( ) ), and two more dates in A3 and B3, the following formula
in, say, B6 will give you almost what you want:

=(DATEDIF(A1,B1,"y")+DATEDIF(A3,B3,"y")) & " years, " &
(DATEDIF(A1,B1,"ym")+DATEDIF(A3,B3,"ym")) & " months, " &
(DATEDIF(A1,B1,"md")+DATEDIF(A3,B3,"md")) & " days"

- all one formula. Unfortunately, this can give return values like;

65 years, 14 months, 23 days

and I'm not sure how to correct the number of months (I've never used
DATEDIF before!)

Here's an alternative, using the same initial dates where dates in B
are later than those in A:

=TEXT((B1+B3-A1-A3)/365.25,0)&" years,
"&TEXT((MOD((B1+B3-A1-A3),365.25)),0)&" days"

and this returns values like:

66 years, 82 days

although if you use 365 days in the formula instead of 365.25 with the
same dates that I did then it would show 66 years, 98 days

Take your pick, and I hope you can make some use of them.

Pete


  #12   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete
 
Posts: n/a
Default Calculation between two dates

Okay, cheers.

Pete

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
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM
calculation sundays between two dates jeff thinkin Excel Discussion (Misc queries) 3 September 15th 05 02:07 AM
calculation of interest between two dates Arvind Khanna via OfficeKB.com Excel Worksheet Functions 2 May 26th 05 10:19 AM
Calculation to determine days between two dates Dubleaa Excel Worksheet Functions 3 March 17th 05 03:27 AM
Formating Dates for production schedule dpl7579 Excel Discussion (Misc queries) 1 January 11th 05 08:43 PM


All times are GMT +1. The time now is 08:15 AM.

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"