ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Unique entries based on condition - count distinct (https://www.excelbanter.com/excel-discussion-misc-queries/262911-unique-entries-based-condition-count-distinct.html)

Rich[_8_]

Unique entries based on condition - count distinct
 
Hi,

I'm really struggling with what I thought should be easy.

A B C
D
branch salesperson transaction num Item code


I'm trying to the number of unique saples people in each branch, the number
of unique tranactions by each sales person, and the number of unique items
in each transaction.

In another program I use "Count Distinct" but am struggling to acheieve the
same in excel. Any ideas?

--
Rich
http://www.rhodes-lindos.co.uk
http://www.rhodes-pefkos.co.uk




Bob Phillips[_4_]

Unique entries based on condition - count distinct
 
Try these array formulae

=SUM(N(FREQUENCY(IF(A1:A100="branch",MATCH(B1:B100 &"",B1:B100&"",0)),MATCH(B1:B100&"",B1:B100&"",0)) 0))

SUM(N(FREQUENCY(IF(B1:B100="salesperson",MATCH(C1: C100&"",C1:C100&"",0)),MATCH(C1:C100&"",C1:C100&"" ,0))0))

etc.

--

HTH

Bob

"Rich" wrote in message
...
Hi,

I'm really struggling with what I thought should be easy.

A B C D
branch salesperson transaction num Item code


I'm trying to the number of unique saples people in each branch, the
number of unique tranactions by each sales person, and the number of
unique items in each transaction.

In another program I use "Count Distinct" but am struggling to acheieve
the same in excel. Any ideas?

--
Rich
http://www.rhodes-lindos.co.uk
http://www.rhodes-pefkos.co.uk







All times are GMT +1. The time now is 04:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com