Array formula to count unique based on value on another column

rombo

Board Regular
Joined
Aug 18, 2010
Messages
50
Office Version
  1. 2019
Platform
  1. Windows
Sir,

Trying to find a formula which works in 2019 excel
Count unique number or person who has sold articles
Column A has person names, B has articles and C number of items sold, trying to find a formula to count unique number of persons who have sold articles
 

Attachments

  • Uniq counting.jpg
    Uniq counting.jpg
    52.7 KB · Views: 8

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)
How about
+Fluff 1.xlsm
ABCDE
1
2
3
4Jeff004
5Liam10
6Jeff1
7Liam0
8Niel15
9Linda5
10Bob0
11Linda0
12
List
Cell Formulas
RangeFormula
E4E4=SUM(--(FREQUENCY(IF(C4:C11>D4,MATCH(A4:A11,A4:A11,0)),ROW(A4:A11)-ROW(A4)+1)>0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thanks a ton Sir, I missed to mention this in the earlier post, need to find unique number of persons by articles sold also
 
Upvote 0
Did the formula I proved do what you asked for?
 
Upvote 0
Did the formula I proved do what you asked for?
Yes Sir, but I missed to mention another request to find number of unique person by articles sold. how many persons have sold Pen in a cell

Pen 2
(Pen was sold be two people)
 
Upvote 0
Ok, how about
+Fluff 1.xlsm
ABCDE
1
2
3
4JeffBook002
5LiamPen10Pen
6JeffTable1
7LiamBook0
8NielPen15
9LindaPencil5
10BobPencil0
11LindaEraser0
List
Cell Formulas
RangeFormula
E4E4=SUM(--(FREQUENCY(IF((C4:C11>D4)*(B4:B11=D5),MATCH(A4:A11,A4:A11,0)),ROW(A4:A11)-ROW(A4)+1)>0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,685
Members
448,977
Latest member
dbonilla0331

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