Counting cells with date match criteria

SerenaRian

New Member
Joined
Mar 21, 2019
Messages
2
Hi there,

I am having trouble with a counting formaula and could use some advice.

I need to count the number of donations (each row is a donation), but only of certain sources (for the example table below lets say only source A and B), but only when the Close Date matches the First Donation Date are the same.

[TABLE="width: 200"]
<tbody>[TR]
[TD]Close Date[/TD]
[TD]First Donation Date[/TD]
[TD]Source[/TD]
[/TR]
[TR]
[TD]22/05/2015[/TD]
[TD]13/05/2015[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]01/09/2015[/TD]
[TD]22/05/2015[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]01/09/2015[/TD]
[TD]01/09/2015[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]28/07/2016[/TD]
[TD]22/05/2015[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]24/12/2016[/TD]
[TD]24/12/2016[/TD]
[TD]A[/TD]
[/TR]
</tbody>[/TABLE]

Could someone help with this?

Thanks!
Serena
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Welcome to the Board!

Try:

=SUMPRODUCT(--($A$2:$A$6=$B$2:$B$6),--ISNUMBER(MATCH($C$2:$C$6,{"A","B"},0)))

You could put the sources in a table somewhere too, it would make it easier to change if you want a different set of parameters.
 
Upvote 0

Forum statistics

Threads
1,224,764
Messages
6,180,841
Members
453,001
Latest member
coulombevin

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