+ Reply to Thread
Results 1 to 8 of 8

Calculating Employee Headcount by month.

  1. #1
    Registered User
    Join Date
    04-25-2018
    Location
    Nashville, TN
    MS-Off Ver
    2016
    Posts
    34

    Calculating Employee Headcount by month.

    Hi,

    I need calculate monthly total employee headcount for the past few years using employee transaction data. I have 2 columns of start dates (Temp and Full-Time), Status column(Active/Inactive), and Termination Dates. I am finding that there are 2 ways i can approach this problem. The first is to take a running count of employees based solely on their start and end dates. The second is to begin with the current months total number of employees and work my way backwards by adding the terminations for the ith month and subtracting the new hires from the ith month. I am having difficulty translating either approach into an excel formula. I have attached a sample of my employee data.

    Thank you in advance.
    Attached Files Attached Files
    Last edited by jekeith; 05-17-2018 at 02:32 PM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Calculating Employee Headcount by month.

    It would help to see some expected results with your sample.

    How far back do you want to go?
    It looks like the first real date (not including 1/0/1900 or 6/9/1910) is 1/27/1975.
    Showing everything would be (2018-1975)*12 = 516 rows of monthly calculations.

    There's also a 5/7/2019 and a 11/9/2119 in there.
    Last edited by 63falcondude; 05-17-2018 at 02:49 PM.

  3. #3
    Registered User
    Join Date
    04-25-2018
    Location
    Nashville, TN
    MS-Off Ver
    2016
    Posts
    34

    Re: Calculating Employee Headcount by month.

    Hello,
    Apologies for the data entry errors, they have been corrected and I have added a column indicating how I would like my results to look. I really only want to go back 1-2 years.

    Thank you,

    jekeith
    Attached Files Attached Files

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Calculating Employee Headcount by month.

    How are you arriving at those values? Which dates (columns) are you using?

    Maybe you can adapt this...
    =COUNTIFS(A:A,"active",D:D,">"&EOMONTH(I3,-1),D:D,"<="&EOMONTH(I3,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    04-25-2018
    Location
    Nashville, TN
    MS-Off Ver
    2016
    Posts
    34

    Re: Calculating Employee Headcount by month.

    Those numbers are arbitrary. The 63falcondude had asked to see how I would like my results to look.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Calculating Employee Headcount by month.

    OK did you try to adapt my suggestion?

  7. #7
    Registered User
    Join Date
    04-25-2018
    Location
    Nashville, TN
    MS-Off Ver
    2016
    Posts
    34

    Re: Calculating Employee Headcount by month.

    I did but I dont understand how to implement that without explanation on what goes where. When I try to compare your formula to the sample submission, the latter 2 criteria ranges are for the FT-Date, which are the start dates for direct hires. I'm not understanding how this will get me to my monthly headcount. Would you mind to provide a more detailed explanation?
    Last edited by jekeith; 05-21-2018 at 11:53 AM. Reason: clarification

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Calculating Employee Headcount by month.

    It would be better to submit a small sample with actual results so that we can test formulas/code against those results.
    That said I believe that the following will work.
    1) Add a column to the table that gives the earliest hire date whether it be as a temp or full time employee. The column may be populated using: =IF(OR(C2<>"",D2<>""),MIN(C2,D2),"")
    2) The formula for head count (modified from Ford's) may be written:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The results are untested. I would suggest testing with a small sample for which expected results can be easily produced, then compare to the values yielded by the formula.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. [SOLVED] Month Over Month Headcount with SUMPRODUCT
    By kdalyveris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-05-2020, 04:55 PM
  2. Replies: 2
    Last Post: 08-16-2017, 02:11 AM
  3. [SOLVED] Employee headcount by month
    By Rokitt in forum Excel General
    Replies: 7
    Last Post: 11-17-2016, 05:17 PM
  4. Displaying employee headcount in 15 min intervals
    By DrDementio in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-05-2016, 05:09 PM
  5. Headcount by employee type and interval
    By mike182 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2016, 01:46 AM
  6. Employee Headcount per category
    By patrick.warne in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-10-2013, 03:16 AM
  7. Headcount Within Month
    By som3on3_10 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-25-2009, 03:37 AM

Tags for this Thread

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