Counting unique number

madhatrs26

New Member
Joined
Apr 6, 2015
Messages
7
I have an issue with trying to find a formula that can count the unique number in a list. Here is the data so referencing column A and counting the unique number in column B.

USER_IDLABEL
axr6810321423846
axr6810321423846
axr6810321423859
mxf3580321423850
mxf3580321423852
mxf3580321423852
mxf3580321423852
mxf3580321423867
rxv8290321423851
rxv8290321423851
rxv8290321423864
tmj2550321423849
tmj2550321423849
tmj2550321423849
tmj2550321423861

<colgroup><col><col></colgroup><tbody>
</tbody>

Please assist with this problem.

Thank you much,

madhatter
 
Sorry I just saw your post, but thanks to Mr Aladin, he already came up with a great solution.

With all due respect to him, maybe that formulas below could be alternatives;

=SUM(IFERROR(--(MATCH(IF($B$2:$B$16<>"",$B$2:$B$16),IF(A2=$A$2:$A$16,$B$2:$B$16),0)=ROW($C$1:$C$15)),0)) Ctrl+Shift+Enter
=SUMPRODUCT(--($A$2:$A$16=A2),IFERROR(1/COUNTIFS($B$2:$B$16,$B$2:$B$16,$A$2:$A$16,$A$2:$A$16),0)) Ctrl+Shift+Enter

Regards
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Sorry I just saw your post, but thanks to Mr Aladin, he already came up with a great solution.

With all due respect to him, maybe that formulas below could be alternatives;

=SUM(IFERROR(--(MATCH(IF($B$2:$B$16<>"",$B$2:$B$16),IF(A2=$A$2:$A$16,$B$2:$B$16),0)=ROW($C$1:$C$15)),0)) Ctrl+Shift+Enter
=SUMPRODUCT(--($A$2:$A$16=A2),IFERROR(1/COUNTIFS($B$2:$B$16,$B$2:$B$16,$A$2:$A$16,$A$2:$A$16),0)) Ctrl+Shift+Enter

Regards

But of course, in particular when they fit the performance bill, along with the admissible generality and flexibility scrores:

See an early evaluation: http://www.mrexcel.com/forum/excel-questions/292473-performance-formulas-unique-count.html
 
Upvote 0
Upvote 0

Forum statistics

Threads
1,215,949
Messages
6,127,888
Members
449,411
Latest member
AppellatePerson

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