Count based on two columns of data

davidhall80

Well-known Member
Joined
Jul 8, 2006
Messages
663
In column A I have Hire Date, In column B, I have termination date. I need to know the count of individuals who have hire Dates inbetween Jan 1 2005 and September 30 2005 that have been terminated. Thanks in advance....
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Try...

=SUMPRODUCT(--(A2:A100>="2005/1/1"+0),--(A2:A100<="2005/9/30"+0),--(B2:B100<>""))

or

=SUMPRODUCT(--(A2:A100>=D2),--(A2:A100<=E2),--(B2:B100<>""))

...where D2 contains Jan 1, 2005, and E2 contains Sep 30, 2005.

Hope this helps!
 
Upvote 0
=SUMPRODUCT(--(A1:A100>=("1/1/2005"+0)),--(A1:A100<=("9/30/2005"+0)),--(B1:B100<>""))
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,619
Members
449,238
Latest member
wcbyers

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