excel - How to SUM the number of duplicates in a range by given value? -


a simple example below:

column list containing data column b list of unique data in column without duplicates column c number of duplicates each item in column b column 

how write easy formula cells in column c sum each item in column b column a?

i used =sum(lookup($a$1:$a$10=$b$1)) c1 received: too few arguments function.

enter image description here

a simple countif() should suffice unless i'm misunderstanding..

=countif($a$1:$a$10,b1) 

count if returns number of times second argument found in first argument (which range.)

example


Comments

Popular posts from this blog

How to group boxplot outliers in gnuplot -

cakephp - simple blog with croogo -

bash - Performing variable substitution in a string -