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

Column DColumn EColumn F
John Doeyes1/1/18
John Doeyes1/1/18
John Doeno1/1/18
John Doeyes1/1/18
John Doeyes1/3/18
John Doeyes1/4/18

<tbody>
</tbody>


Hopefully that makes sense

Thank you
 

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)
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,216,212
Messages
6,129,531
Members
449,515
Latest member
lukaderanged

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