Count based on dates in different column

sprytgrrl

New Member
Joined
Mar 3, 2011
Messages
3
Hi! This question has probably been asked a million times before but I still can't get my formulas to work right! Here's what I'm trying to do.

On SheetX!A1, count SheetZ!B:B >DateB IF SheetZ!A:A < DateA

So...On SheetX!A1, count SheetZ!B:B >2/28/2010 only IF SheetZ!A:A < 2/1/2010

Column: A B
1/1/2010 3/1/2010
1/15/2010 2/1/2010
2/19/2010 3/1/2010
2/28/2010 2/1/2010

The count would be one. I've tried sumproduct but get a #Num error.
=SUMPRODUCT((Jan20110302!H:H<DATE(2011,1,1)),(Jan20110302!M:M>=DATE(2011,1,31)))
Thank you!!
 
Last edited:

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi. Try like this



=SUMPRODUCT(--(Jan20110302!H1:H100<=DATE(2011,2,28)),--Jan20110302!H1:H100>DATE(2010,2,1)))
 
Upvote 0

Forum statistics

Threads
1,214,618
Messages
6,120,544
Members
448,970
Latest member
kennimack

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