Counting by months

gncntry96

New Member
Joined
Sep 4, 2011
Messages
5
I'm trying to calculate the number of terminated employees in any given month, so I'm comparing the termination date of each employee to a list of months of the year. I also need to account for the fact that employees are in one of two companies. I think I need a COUNTIFS formula:

=countifs(C2:C233,"company x",G2:G233,???????)

The cell with the month I want to compare to is I237. G2:G233 is the termintation dates for the employees.

This forum has been so great...I'm hoping some more of you gurus can help with this one.

thanks in advance.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
If you have a date in I237 try this

=COUNTIFS(C2:C233,"company x",G2:G233,">"&EOMONTH(I237,-1),G2:G233,"<="&EOMONTH(I237,0))
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,405
Members
452,911
Latest member
a_barila

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