Count Unique Values with criteria

Maxwellis

New Member
Joined
Dec 12, 2015
Messages
1
Mississauga15-12-03
Scarborough15-12-01
Partner Event15-12-03
Scarborough15-12-01
Mississauga15-11-26
Scarborough15-12-01
Mississauga15-11-26
Scarborough15-12-01
Scarborough15-12-01
Mississauga15-11-26
Mississauga15-11-26
Scarborough15-12-01
Mississauga15-11-26
Mississauga15-11-26

<tbody>
</tbody>

Hello, I'm trying to count the number of unique dates when the cell in column A = Scarborough or Mississauga, or more options. I am using google sheets by the way (for work)
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi,

You can try this one : Ctrl+Shift+Enter NOT just Enter

=SUM(IF(FREQUENCY(IF(A1:A14="Scarborough",1*(B2:B14)),IF(A1:A14="Scarborough",1*(B1:B14)))>0,1))
 
Upvote 0
Here's a solution that requires a helper column (col C) which can be hidden:
Excel Workbook
ABCDE
1Mississauga15-12-03Mississauga|15-12-03MississaugaScarborough
2Scarborough15-12-01Scarborough|15-12-013
3Partner Event15-12-03
4Scarborough15-12-01Scarborough|15-12-01
5Mississauga15-11-26Mississauga|15-11-26
6Scarborough15-12-01Scarborough|15-12-01
7Mississauga15-11-26Mississauga|15-11-26
8Scarborough15-12-01Scarborough|15-12-01
9Scarborough15-12-01Scarborough|15-12-01
10Mississauga15-11-26Mississauga|15-11-26
11Mississauga15-11-26Mississauga|15-11-26
12Scarborough15-12-01Scarborough|15-12-01
13Mississauga15-11-26Mississauga|15-11-26
14Mississauga15-11-26Mississauga|15-11-26
Sheet2
 
Upvote 0

Forum statistics

Threads
1,216,075
Messages
6,128,665
Members
449,462
Latest member
Chislobog

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