PC Review


Reply
Thread Tools Rate Thread

calculate time periods

 
 
=?Utf-8?B?dW1iYS1zcg==?=
Guest
Posts: n/a
 
      21st Feb 2006
Hi,

This is something that's bothered me for some time, but I was never able to
discover the solution.

I have a list of employees, for example, and some of them have been in the
company since their first employment, but some of them haven't. Now, the
other group is the one that worries me.

Say, there is one such employee who had worked in some company prior to
this, and then didn't work at all for several months, and only then joined
our company.
I know that to calculate time difference, function is DATEDIF, and when I
add parametres to get years, months and days, formula and results look
something like this:
=DATEDIF(E4,TODAY(),"Y")&" years, " & DATEDIF(E4,TODAY(),"ym")&" months, " &
DATEDIF(E4,TODAY(),"md")&" days"

12 years, 5 months, 26 days

And this is the period he spent in our company, plus I have the same formula
for the time he spent in previous company, only with specific date instead of
TODAY().

Actual question is: How do I add these two results to get total of years,
months and days?
 
Reply With Quote
 
 
 
 
daddylonglegs
Guest
Posts: n/a
 
      21st Feb 2006

If dates spent at previous company were, say, C4 to D4

=DATEDIF(C4,TODAY()-E4+D4,"Y")&" years, "
DATEDIF(C4,TODAY()-E4+D4,"ym")&" months, " &
DATEDIF(C4,TODAY()-E4+D4,"md")&" days

--
daddylongleg
-----------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...fo&userid=3048
View this thread: http://www.excelforum.com/showthread.php?threadid=51485

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate Finace Periods from the given Date Pat Microsoft Access VBA Modules 0 28th Jan 2010 07:10 PM
24 rolling periods how to calculate. mccloud Microsoft Access Queries 6 1st Dec 2009 07:36 PM
calculate remaining pay periods maijiuli Microsoft Excel Worksheet Functions 5 24th Jan 2008 10:32 PM
How to calculate portfolio returns over different periods of time =?Utf-8?B?dGZyZW50eg==?= Microsoft Excel Worksheet Functions 4 25th Jan 2007 01:27 AM
How do I calculate rate when pmt is made at end of periods =?Utf-8?B?aHN1bW1lcg==?= Microsoft Excel Worksheet Functions 1 7th Aug 2005 10:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:41 PM.