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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Domenic

MrExcel MVP
Joined
Mar 10, 2004
Messages
19,762
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,016
Office Version
  1. 365
=SUMPRODUCT(--(A1:A100>=("1/1/2005"+0)),--(A1:A100<=("9/30/2005"+0)),--(B1:B100<>""))
 

Forum statistics

Threads
1,144,614
Messages
5,725,319
Members
422,613
Latest member
salim9696

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