CountIF unique dates with multiple criteria with

JAnders

New Member
Joined
Feb 27, 2015
Messages
37
Hello excel experts,

I'm trying to figure out a way to have a countif formula that will capture number of unique dates with multiple criteria.

Column D = Names
Column E = Description
Column F = Date

Cell A2 = "John Doe"
Cell A3= "Yes"
Cell A4 = Formula to return the number of unique days "John Doe" (cell A2) is listed with column E being "Yes" (cell A3). In the example below it should return 3

[TABLE="width: 500"]
<tbody>[TR]
[TD]Column D[/TD]
[TD]Column E[/TD]
[TD]Column F[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]yes[/TD]
[TD]1/1/18[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]yes[/TD]
[TD]1/1/18[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]no[/TD]
[TD]1/1/18[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]yes[/TD]
[TD]1/1/18[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]yes[/TD]
[TD]1/3/18[/TD]
[/TR]
[TR]
[TD]John Doe[/TD]
[TD]yes[/TD]
[TD]1/4/18[/TD]
[/TR]
</tbody>[/TABLE]


Hopefully that makes sense

Thank you
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Try:

=SUM(SIGN(FREQUENCY(IF(D2:D10=A2,IF(E2:E10=A3,F2:F10)),F2:F10)))

and confirm it by pressing Control+Shift+Enter after you enter it in the formula bar, not just enter.
 
Upvote 0
Thank you Eric, that worked perfectly !

I do have a follow up question though. How would I change it be unique dates > a certain date (that is listed in cell A1)
 
Upvote 0
That would be:

=SUM(SIGN(FREQUENCY(IF(D2:D10=A2,IF(E2:E10=A3,IF(F2:F10>A1,F2:F10))),F2:F10)))
with Control+Shift+Enter.

Glad to help! :cool:
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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