Number of employees at any one time

djaldente

New Member
Joined
Mar 21, 2017
Messages
27
Office Version
  1. 2016
Platform
  1. Windows
I have got a list of employees start dates in one column and their finish dates in another column.

I need to calculate how many employees were present each month.

Any help would be greatly appreciated.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
This calculates how many employees were employed for at least ONE day in any month in 2019

Book1
ABCDEFGH
1NameStartFinishMonthYearCount
2John08/02/201905/12/2019January201910
3Jamie10/12/201805/11/2019February201913
4Jenny11/10/201806/10/2019March201913
5Jim08/02/201905/12/2019April201913
6Jimmy10/12/201805/11/2019May201913
7Janet11/10/201806/10/2019June201913
8Jane12/08/201806/09/2019July201913
9Joe13/06/201807/08/2019August201913
10Joseph08/02/201905/12/2019September201911
11Jeremy10/12/201805/11/2019October20199
12Jackie11/10/201806/10/2019November20196
13Jack12/08/201806/09/2019December20193
14Jason13/06/201807/08/2019
15
16
Sheet3
Cell Formulas
RangeFormula
H2:H13H2=COUNTIFS(B:B,"<=" & EOMONTH(DATEVALUE(F2 & " " & G2),0),C:C,"")+COUNTIFS(B:B,"<=" & EOMONTH(DATEVALUE(F2 & " " & G2),0),C:C,">=" & DATEVALUE(F2 & " " & G2))
 
Upvote 0

Forum statistics

Threads
1,215,556
Messages
6,125,495
Members
449,235
Latest member
Terra0013

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