excel - Single Cell Calculation of the Average Count of Unique Words -
i have dataset looks follows:
apple banana banana carrot pear pear pear pear pear i'd use formula find out on average how many times item appears in list. @ moment, create table listing each item once , use countif find number of times each item appears:
apple 1 banana 2 carrot 1 pear 5 in cell, average these numbers reach figure of 2.25.
is there way simplify , calculate using (array?) formula in single cell?
thanks in advance!
you not require array formula:
=counta(a1:a9)/sumproduct(1/countif(a1:a9, a1:a9)) 
edit#1:
it turns out average of unique counts actually:
=(total count of items) / (count of uniques)
edit#2:
to cover entire column , exclude blanks, use array formula:
=counta(a:a)/sum(if(a:a<>"",1/countif(a:a,a:a ), 0)) array formulas must entered ctrl + shift + enter rather enter key.
this painfully slow calculate, recommend restricting cells in column a reasonable.
Comments
Post a Comment