Adding 1st of Month Column to get Head Count of Active Employees from Previous Months
Get a count of active employees each month based on hire/fire dates. Can't use SUMPRODUCT
excel - Calculate number of active employees per month - Stack Overflow
HR data: Employee count using start date and leaving date
I am trying to get a monthly head count of active employees by month. My data has "Employee ID" as a unique identifier for each employee. Also there is a "Hire Date" and "Termination Date" if applicable. I am trying to get a date for each month to show up from the hire date, until a termination date is present. This way I can count the employee each month, instead of only the initial month they were hired. The YouTube link below discusses this for Tableau, but I am solely trying to accomplish this in Excel due to working with what I have at my job. It is discussed in it's entirety in the first 1 minute of the video. I've been trying to solve this problem for about a week now and this is about as close to a solution as I have found. Any and all help would be appreciated.
An example would be I have 100 employees in January 2020 and hire 25 and lose 5 employees in February 2020 - I want the total active employees to show 120 for February.
https://www.youtube.com/watch?v=0X0YGAHHkAQ&t=190s
https://docs.google.com/spreadsheets/d/18yWvZC5C1ICA1WnhtY-lLloxNYHijD_IBua2ixfl0yI/edit?usp=sharing
I have columns for each month using the end of month date. I have employees with their hire date and termination date. If they're active I just use 12/31/2999 as a term date.
I want to create a formula and copy it across each month that tells how many active employees I have.
I can't use SUMPRODUCT as it tends to really slow down my working production sheets.
Tried using variations of COUNTIFS and it escapes me. This seems like it should be much easier than I'm finding it to be.
Hi all,
Looking for some guidance here. I have a spreadsheet with Employee ID, Hiring Date, Termination Date. Is there a way from me to be able to put this data in a pivot table with the Months being in columns, and the active headcount in the rows/values?
Just trying to show the active monthly headcount based on those three fields. I would appreciate anyone's help here.
Thanks!
Use a pivot table. You can manually refresh a pivot table's data source by right-clicking on it and clicking refresh. Otherwise you can set up a worksheet_change macro - or just a refresh button. Pivot Table tutorial is here: http://chandoo.org/wp/2009/08/19/excel-pivot-tables-tutorial/
1) Create a Month column from your Date column (e.g. =TEXT(B2,"MMM") )

2) Create a Year column from your Date column (e.g. =TEXT(B2,"YYYY") )

3) Add a Count column, with "1" for each value

4) Create a Pivot table with the fields, Count, Month and Year 5) Drag the Year and Month fields into Row Labels. Ensure that Year is above month so your Pivot table first groups by year, then by month 6) Drag the Count field into Values to create a Count of Count

There are better tutorials I'm sure just google/bing "pivot table tutorial".
For anyone finding this post through Google (as I did) here's the correct formula for cell F5 in the above example:
=SUMPRODUCT((MONTH(Sheet1!$A$1:$A$50)=MONTH(DATEVALUE(E5&" 1")))*(Sheet1!$A$1:$A$50<>""))
Formula assumes a list of dates in Sheet1!A1:A50 and a month name or abbr ("April" or "Apr") in cell E5.
I'm able to make it with a simple excel that literally just has year,number of new employees, number of total employees, but I'm hoping to do it directly in the list of employees.
is there a way to do a graph like that so can add in HireType ?
