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

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Are you able to post some sample data to work with?
 
Upvote 0
A B C D
ESTES CONNER ST6/6/2016 11/30/2018
WILLIAMS JESSICA LT9/18/201711/30/2018
CANTRELL HERBERT AT10/9/201012/4/2018
TREFTS GARRY LT6/9/20151/11/2019
ABRASSART WESLEY A5/26/20081/23/2019
ALLEN MICHAEL DA1/30/20121/23/2019
BAILEY MATTHEW AA10/5/20151/23/2019
BELL III GRADY RA9/10/20121/23/2019
BISHIR MARK RA5/26/20081/23/2019
BLANCHETTE ALAN DALEA1/21/20151/23/2019
BOROS JOSEPH MA12/18/20181/23/2019

<colgroup><col><col><col span="2"></colgroup><tbody>
</tbody>


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,214,591
Messages
6,120,426
Members
448,961
Latest member
nzskater

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