Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default no. of months worked between two dates, etc...

hi all,
below is my data sample:

A B C D E F
Emp # Hire Dt Rehired Term Dt CA Start CA End
1 8/1/2008 9/15/2009 4/3/2009 12/1/2005 12/7/2009 = 2 mos.
2 8/13/1984 12/9/2002 8/15/2002 12/1/2005 12/7/2009 = 48 mos.
3 8/6/2007 8/6/2007 12/1/2005 12/7/2009 = 28 mos.
4 9/10/2007 9/10/2007 12/1/2005 12/7/2009 = 26 mos.
5 4/28/2000 8/16/2005 8/3/2006 12/1/2005 12/7/2009 = 48 mos.

i have already figured out the no. of months worked w/n the CA dates using
this formula:
=IF(C2<E2,DATEDIF(E2,F2,"m"),IF(D2<C2,DATEDIF(C2,F 2,"m"),DATEDIF(C2,D2,"m")))

but the problem pertains to Emp. #1, where they were Hired & Rehired w/n the
CA date so the correct answer should actually be 2 + 8 mos. (8/1/2008 -
4/3/2009). how do i insert this into my formula? if it is not possible, i
just need a separate one to answer "Hired & Rehired CA dates (Y/N)" then i'll
do it manually.

second question, i need a formula to answer this query: Worked in 2006
(Y/N), Worked in 2007 (Y/N), Worked in 2008 (Y/N), Worked in 2009 (Y/N). The
ultimate goal is to get a count of how many employees worked in those given
year.

help. thanks in advance!
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
Number of hrs worked in a week, based on dates in a different column Gregg[_2_] Excel Worksheet Functions 1 November 26th 09 10:37 PM
Total days worked /20 to get actual months/days Cindy Excel Worksheet Functions 3 October 22nd 09 11:50 PM
Adding months to dates should account for 28-30-31 day months Graham Excel Worksheet Functions 3 February 1st 06 12:06 PM
How do I create a commission chart based on dates worked? Orange Pegs in Cerritos Excel Worksheet Functions 0 January 4th 06 12:19 AM
Formula that will represent years & months worked Pam Excel Discussion (Misc queries) 5 August 29th 05 11:20 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"