Add number of people based off of hire/termination dates

HeRoseInThree

Board Regular
Joined
Jan 11, 2018
Messages
103
I need to calculate the number of people employed at a certain time frame. How many hired before january 1, 2018 and still employed on January 31, 2018. The same for each month after...

Hire date is in column H and term date is in column I. If they are still employed add them all up. If not, skip them.

Any help would be appreciated!!!!
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Are you able to post some sample data to work with?
 
Upvote 0
A B C D
[TABLE="width: 416"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD]ESTES CONNER S[/TD]
[TD]T[/TD]
[TD="align: right"]6/6/2016[/TD]
[TD="align: right"] 11/30/2018[/TD]
[/TR]
[TR]
[TD]WILLIAMS JESSICA L[/TD]
[TD]T[/TD]
[TD="align: right"]9/18/2017[/TD]
[TD="align: right"]11/30/2018[/TD]
[/TR]
[TR]
[TD]CANTRELL HERBERT A[/TD]
[TD]T[/TD]
[TD="align: right"]10/9/2010[/TD]
[TD="align: right"]12/4/2018[/TD]
[/TR]
[TR]
[TD]TREFTS GARRY L[/TD]
[TD]T[/TD]
[TD="align: right"]6/9/2015[/TD]
[TD="align: right"]1/11/2019[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ABRASSART WESLEY [/TD]
[TD]A[/TD]
[TD="align: right"]5/26/2008[/TD]
[TD="align: right"]1/23/2019[/TD]
[/TR]
[TR]
[TD]ALLEN MICHAEL D[/TD]
[TD]A[/TD]
[TD="align: right"]1/30/2012[/TD]
[TD="align: right"]1/23/2019[/TD]
[/TR]
[TR]
[TD]BAILEY MATTHEW A[/TD]
[TD]A[/TD]
[TD="align: right"]10/5/2015[/TD]
[TD="align: right"]1/23/2019[/TD]
[/TR]
[TR]
[TD]BELL III GRADY R[/TD]
[TD]A[/TD]
[TD="align: right"]9/10/2012[/TD]
[TD="align: right"]1/23/2019[/TD]
[/TR]
[TR]
[TD]BISHIR MARK R[/TD]
[TD]A[/TD]
[TD="align: right"]5/26/2008[/TD]
[TD="align: right"]1/23/2019[/TD]
[/TR]
[TR]
[TD]BLANCHETTE ALAN DALE[/TD]
[TD]A[/TD]
[TD="align: right"]1/21/2015[/TD]
[TD="align: right"]1/23/2019[/TD]
[/TR]
[TR]
[TD]BOROS JOSEPH M[/TD]
[TD]A[/TD]
[TD="align: right"]12/18/2018[/TD]
[TD="align: right"]1/23/2019[/TD]
[/TR]
</tbody>[/TABLE]


A is the driver's name, B is active or termed, c is hire date and d is term date or todays date if they are still employed.
 
Upvote 0
Try this out
=COUNTIFS(C:C,"<=1/1/2018",D:D,">=1/31/2018")

Would need to change the dates for each month, but that should give you what you are looking for if I understand the goal correctly.
 
Upvote 0
How about


Excel 2013/2016
ABCDEFG
1
2ESTES CONNER ST06/06/201630/11/201801/01/201810
3WILLIAMS JESSICA LT18/09/201730/11/201801/02/201810
4CANTRELL HERBERT AT09/10/201004/12/201801/03/201810
5TREFTS GARRY LT09/06/201511/01/201901/04/201810
601/05/201810
701/06/201810
8ABRASSART WESLEYA26/05/200823/01/201901/07/201810
9ALLEN MICHAEL DA30/01/201223/01/201901/08/201810
10BAILEY MATTHEW AA05/10/201523/01/201901/09/201810
11BELL III GRADY RA10/09/201223/01/201901/10/201810
12BISHIR MARK RA26/05/200823/01/201901/11/20188
13BLANCHETTE ALAN DALEA21/01/201523/01/201901/12/20187
14BOROS JOSEPH MA18/12/201823/01/201901/01/2019
Today
Cell Formulas
RangeFormula
F3=EDATE(F2,1)
G2=COUNTIFS(C:C,"<="&F2,D:D,">"&F3-1)
 
Upvote 0
Glad we could help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,853
Members
452,361
Latest member
d3ad3y3

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