excel - Distinct Values with criteria -


i have table in format given below:

account programme view   1 b   0   1   1 c   1 c   1 d   0 e   1 d   0 e   1 g   0 b   0 

how unique accounts programme view 1. here answer 3 (a, c & e). used sum(if(frequency....) getting stuck in defining criteria.

you on right lines, though frequency needs combined match count text:

=sum(if(frequency(if($b$2:$b$13=0,match($a$2:$a$13,$a$2:$a$13,0)),if($b$2:$b$13=0,match($a$2:$a$13,$a$2:$a$13,0)))>0,1))

don't forget array formula confirm holding ctrl + shift hit enter

assuming account in column , programme view in column b. cna change $b$2:$b$13=0 reference cell such $b$2:$b$13=$d2 use formula in table.

edit: adding further criteria

to add further column criteria add additional if. have column c maybe account active, filled yes , no like:

=sum(if(frequency(if($b$2:$b$13=0,if($c$2:$c$13="yes",match($a$2:$a$13,$a$2:$a$13,0))),if($b$2:$b$13=0,if($c$2:$c$13="yes",match($a$2:$a$13,$a$2:$a$13,0))))>0,1))

this count accounts programme view 0 , account active.


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -