counting distinct items within a cell

  • Thread starter Thread starter TrentA
  • Start date Start date
T

TrentA

How would I specific items within a cell or column?

EX:

x,y,1,4,3*,2,x
x,4,9,y,z,y

How would I write a formula to count the x's in this column?

Thanks
 
=SUMPRODUCT(--(LEN(A1:A20)-LEN(SUBSTITUTE(A1:A20,"x",""))))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top