ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   count unique values & filter (https://www.excelbanter.com/excel-worksheet-functions/127330-count-unique-values-filter.html)

paula k

count unique values & filter
 
This is some sample data:

LOB BC#
Bank BK-1
Bank BK-1
Bank BK-2
Bank BK-1
FPPS FP-1
FPPS FP-1

How do I count the number of UNIQUE BC#'s per LOB? AKA...Bank=2, FPPS = 1

Thanks for your help!!!!!!!!!!!!!

Gary''s Student

count unique values & filter
 
One way is a Pivot Table. See:

http://peltiertech.com/Excel/Pivots/pivotstart.htm
--
Gary's Student
gsnu200702


"paula k" wrote:

This is some sample data:

LOB BC#
Bank BK-1
Bank BK-1
Bank BK-2
Bank BK-1
FPPS FP-1
FPPS FP-1

How do I count the number of UNIQUE BC#'s per LOB? AKA...Bank=2, FPPS = 1

Thanks for your help!!!!!!!!!!!!!


Domenic

count unique values & filter
 
Assuming that A2:B7 contains the data, let D2 and D3 contain Bank and
FPPS, then try...

E2, copied down:

=SUM(IF(FREQUENCY(IF($A$2:$A$7=D2,MATCH($B$2:$B$7, $B$2:$B$7,0)),ROW($A$2:
$A$7)-ROW($A$2)+1),1))

....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

In article ,
paula k wrote:

This is some sample data:

LOB BC#
Bank BK-1
Bank BK-1
Bank BK-2
Bank BK-1
FPPS FP-1
FPPS FP-1

How do I count the number of UNIQUE BC#'s per LOB? AKA...Bank=2, FPPS = 1

Thanks for your help!!!!!!!!!!!!!



All times are GMT +1. The time now is 06:21 AM.

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