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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,719
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!
 

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,015
Office Version
  1. 365
=SUMPRODUCT(--(A1:A100>=("1/1/2005"+0)),--(A1:A100<=("9/30/2005"+0)),--(B1:B100<>""))
 

Forum statistics

Threads
1,140,944
Messages
5,703,312
Members
421,290
Latest member
james90

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
Top