+ Reply to Thread
Results 1 to 9 of 9

Calculating values meeting multiple conditions

  1. #1
    Registered User
    Join Date
    12-11-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    4

    Calculating values meeting multiple conditions

    I want to calculate the number of full time employees (FTE) at our company for every year since 2004.

    My spreadsheet includes every employee who has ever worked at our company, the date they started (Start Date) and, for some, the date they left the company (End Date). If they are still with the company, the End Date is blank.

    I would like to generate a report showing the number of Full Time Employees (FTE's) by year, including the fraction of the year they joined or left. For example, if someone joined in June, 2004 and left in Sept 2010, They would count as ½ of FTE for the year 2004, 1 FTE for 2005 through 2009 and ¾ for 2010.

    I've started by creating columns for each year 2004, 2005, etc. But, I'm struggling to create a formula to test for all possible conditions.
    • With company at all for the year?
    • If no, enter 0.
    • If yes, what enter the fraction of the year based on either the Start Date or End Date?


    Any ideas? I must be over-complicating this.

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculating values meeting multiple conditions

    I think that you should try organizing your data something like this.

    Column A: Name
    Column B: Start Date
    Column C: End Date
    Column D: Length of service.

    Use proper Excel recognizable dates (don't put two dates in one column...put Start and End dates in their own columns) and calculations will be relatively simple.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    12-11-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Calculating values meeting multiple conditions

    My data is organized as you suggest. Sorry if I gave a different impression. I hope you are right about the calculations being simple but so far, they're beyond me.

    Assume the structure you propose plus separate columns for 2004, 2005, ... 2013.

    How would you calculate the number of FTE's in each column / row intersection?

    Thanks for any guidance.

    -


    Quote Originally Posted by newdoverman View Post
    I think that you should try organizing your data something like this.

    Column A: Name
    Column B: Start Date
    Column C: End Date
    Column D: Length of service.

    Use proper Excel recognizable dates (don't put two dates in one column...put Start and End dates in their own columns) and calculations will be relatively simple.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculating values meeting multiple conditions

    Can you post a representative workbook with realistic data as I think that you are making it more complicated than it should be by adding columns for each year?

  5. #5
    Registered User
    Join Date
    12-11-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Calculating values meeting multiple conditions

    Thanks for your help on this. I suspect you are correct about me overcomplicating this.

    The attached shows some sample data in Start Date and End Date. The columns for 2004 - 2013 are blank.

    The goal is to generate a report showing the number of FTE's in each year.

    Thanks again.

    Workbook1.xlsx

    Quote Originally Posted by newdoverman View Post
    Can you post a representative workbook with realistic data as I think that you are making it more complicated than it should be by adding columns for each year?

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculating values meeting multiple conditions

    I think that I have something workable here. At least it works with the examples.
    Attached Files Attached Files

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: Calculating values meeting multiple conditions

    @scardais

    Don't quote whole posts -- it's just clutter. If you are responding to a post out of sequence, limit quoted content to a few relevant lines that makes clear to whom and what you are responding.

  8. #8
    Registered User
    Join Date
    12-11-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Calculating values meeting multiple conditions

    Thank you, very much. It worked.

    Even after studying your solution for a few minutes, I don't see how the fractional portions of the years are being calculated. They are being calculated but I don't see how.

    Thanks again for you help on this.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Calculating values meeting multiple conditions

    The fractional part of the year is using the difference between dates in days (DAYS360) and dividing by 365 the number of days in a year.

    I'm glad that the solution works for you. Thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Count rows meeting multiple criteria of multiple values
    By borcimaeh in forum Excel General
    Replies: 4
    Last Post: 08-24-2014, 02:37 PM
  2. Iterate through values meeting specific conditions
    By pico32 in forum Excel General
    Replies: 3
    Last Post: 04-16-2012, 05:14 AM
  3. Count Values not meeting Multiple Criteria
    By Foreverlearning in forum Excel General
    Replies: 3
    Last Post: 04-04-2012, 11:08 PM
  4. Counting values meeting multiple criteria.
    By Kurtis in forum Tips and Tutorials
    Replies: 6
    Last Post: 10-31-2007, 06:52 PM
  5. Counting values meeting multiple criteria
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 06-12-2005, 03:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1