HR data: Employee count using start date and leaving date

chloe123

New Member
Joined
Mar 24, 2021
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm very new to excel and would appreciate help .:)

I have a list of 48 employees. some current, some left.

The info i have on each is start date and leaving date. (screenshot attached).

i would like a chart that shows how many total active employees there are and how many new starters there are in each quarter since 2017.

I am COMPLETELY lost and have been trying all day with date tables, measures... I just cant get anywhere close.

I would be so so grateful for any help.
 

Attachments

  • preview .png
    preview .png
    20.8 KB · Views: 88

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi Chloe123,

Some have no Leaving Date which suggests they're still employed. Please confirm.
Those with a Leaving Date have no Start Date so how can we tell if they started the month before or in 2016?
 
Upvote 0
Hi Chloe123,

Some have no Leaving Date which suggests they're still employed. Please confirm.
Those with a Leaving Date have no Start Date so how can we tell if they started the month before or in 2016?
Hi Toadstool,

Thanks so much for your reply!

Sorry I added this late last night just as an example - there should be start dates in all columns :). for an example, lets just say the ones where there are gaps all started on 01/01/2017?

Hope this helps!
 
Upvote 0
Hi Toadstool,

Thanks so much for your reply!

Sorry I added this late last night just as an example - there should be start dates in all columns :). for an example, lets just say the ones where there are gaps all started on 01/01/2017?

Hope this helps!
I've attached a new screenshot. Dates in all join dates. 4 employees have no leave date so are still employed. Thanks
 

Attachments

  • preview amended.PNG
    preview amended.PNG
    18.8 KB · Views: 89
Upvote 0
I've attached a new screenshot. Dates in all join dates. 4 employees have no leave date so are still employed. Thanks
I've got as far as making a pivot table with a count of join dates (new hires) and count of leave dates (leavers).

It would be great to have a cumulative running total and/or a way to turn it into turnover.

Again, thank you so much!
 

Attachments

  • preview 3.PNG
    preview 3.PNG
    15.2 KB · Views: 77
Upvote 0
Recommend using Tables so your chart will automatically update when you add data. Ctrl-T with a table cell selected will create a table out of your data. I called the first table EmployeeData and the second ChartData (with a table cell selected click design under table and rename the tables). The dates in ChartData can be automatically added by first manually entering the first two qtrs start and end dates, selecting those four cells and dragging down (Excel recognizes the pattern). Once ChartData table is working create the chart by selecting Currently Employed hold the ctrl key down, select Q1-2016 to Q1-2021, keep holding the ctrl down and click on the count of current employees and the hire counts. That should have selected all the chart data. Then Insert bar chart should create a bar chart similar to the one below. When a new quarter starts just select the last two quarter start and end dates and drag the fill handle down a row.

Book2
BCDEFGHIJKLMNOPQRS
1
2NameStartEndCurrently Employed11
3A1/27/20171/22/2020
4B5/10/20203/15/2021QuarterHiresQtr StartQtr End
5C7/3/201711/16/2017Q1-201731/1/20173/31/2017
6D2/19/2017Q2-201714/1/20176/30/2017
7E6/14/2017Q3-201727/1/20179/30/2017
8F4/12/2019Q4-2017010/1/201712/31/2017
9G10/13/20192/9/2020Q1-201811/1/20183/31/2018
10H7/17/20198/12/2020Q2-201814/1/20186/30/2018
11I2/19/20209/26/2020Q3-201807/1/20189/30/2018
12J1/7/2021Q4-2018010/1/201812/31/2018
13K8/29/201911/29/2020Q1-201911/1/20193/31/2019
14L8/14/20161/30/2018Q2-201914/1/20196/30/2019
15M2/4/20177/6/2018Q3-201937/1/20199/30/2019
16N12/26/2019Q4-2019410/1/201912/31/2019
17O1/17/2019Q1-202011/1/20203/31/2020
18P8/15/2017Q2-202014/1/20206/30/2020
19Q6/18/2018Q3-202007/1/20209/30/2020
20R3/6/201810/1/2019Q4-2020010/1/202012/31/2020
21S12/10/20193/22/2021Q1-202121/1/20213/31/2021
22T3/30/2021
23U8/1/20194/6/2020
24V12/20/20164/13/2018
25W12/16/20192/15/2021
26X1/2/2022
27Y11/11/2021
28
Sheet4
Cell Formulas
RangeFormula
H2H2=COUNTIF(EmployeeData[End],"")
G5:G21G5="Q" & MONTH(J5)/3 & "-" & YEAR(J5)
H5:H21H5=COUNTIFS(EmployeeData[Start],">=" & I5,EmployeeData[Start],"<=" & J5)


1616694756916.png
 
Upvote 0
Hi Chloe123,

Here's my method

Chloe123.xlsx
ABCDEFGHI
1First NameJoining DateLeave DateQtr DatesQuarterStaffStarters
2Elisa05-Jun-1722-Mar-1901-Jan-172017-Q183
3Daniele18-Jan-1724-Jan-2001-Apr-172017-Q291
4Tony24-Apr-1301-Jul-172017-Q390
5Nicholas07-Mar-1601-Oct-172017-Q490
6Filippo22-Mar-1701-Jan-182018-Q180
7Benjamin12-Jul-1601-Apr-182018-Q280
8Maciej21-Mar-1715-May-2001-Jul-182018-Q380
9Jan03-May-1609-Feb-1801-Oct-182018-Q480
10Enrico12-Feb-1609-May-1901-Jan-192019-Q170
1101-Apr-192019-Q260
1201-Jul-192019-Q360
1301-Oct-192019-Q460
1401-Jan-202020-Q150
1501-Apr-202020-Q240
1601-Jul-202020-Q340
1701-Oct-202020-Q440
1801-Jan-212021-Q140
1901-Apr-212021-Q240
Sheet1
Cell Formulas
RangeFormula
G2:G19G2=YEAR(E2)&"-Q"&ROUND(MONTH(E2)/4,0)+1
H2:H19H2=COUNTIFS($B$2:$B$99,"<="&E3,$C$2:$C$99,">="&E3)+COUNTIFS($B$2:$B$99,"<="&E3,$C$2:$C$99,"")
I2:I19I2=COUNTIFS($B$2:$B$99,">="&E2,$B$2:$B$99,"<"&E3)
E3:E19E3=EDATE(E2,3)


...and an Insert, Recommednded Chart gives:
1616696704950.png
 
Upvote 0

Forum statistics

Threads
1,223,642
Messages
6,173,510
Members
452,518
Latest member
SoerenB

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top