Count Unique value

Vinny1984

New Member
Joined
May 22, 2019
Messages
9
Office Version
  1. 365
Platform
  1. Windows
[TABLE="width: 139"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Date[/TD]
[TD]Count[/TD]
[/TR]
[TR]
[TD="align: right"]1/01/2019[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD="align: right"]6/01/2019[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]10/01/2019[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]10/01/2019[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]20/01/2019[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]5/02/2019[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8/02/2019[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8/02/2019[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]10/02/2019[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

=SUMPRODUCT(1/COUNTIFS(A2:A10,A2:A10))

hey guys,
the above count shows me the unique value for the whole column - but how do i show how many unique values for Jan and Feb separately. I want the result to be 4 and 3.

thanks in advance
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
For January,
Code:
=SUMPRODUCT(1/COUNTIFS(A2:A10,A2:A10)*(MONTH(A2:A10)=1))

For February,
Code:
=SUMPRODUCT(1/COUNTIFS(A2:A10,A2:A10)*(MONTH(A2:A10)=2))
 
Upvote 0
Try:
Excel Workbook
ABC
1DateCount
21/1/2019Jan4
31/6/2019Feb3
41/10/2019
51/10/2019
61/20/2019
72/5/2019
82/8/2019
92/8/2019
102/10/2019
Sheet
 
Upvote 0
Another way:



=SUMPRODUCT((MATCH($A$2:$A$10, $A$2:$A$10,0)=ROW($A$2:$A$10)-1)*(MONTH($A$2:$A$10)=1))
=SUMPRODUCT((MATCH($A$2:$A$10, $A$2:$A$10,0)=ROW($A$2:$A$10)-1)*(MONTH($A$2:$A$10)=2))
 
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,312
Members
452,634
Latest member
cpostell

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