I need to count the occurence of text in a range of cells (which .

B

Brenda

I need to count the occurence of a character (i.e. a comma (,)) in a range of
cells. Each comma represents a value of one and may occur more than once in a
cell. Then I need to have the total sum of commas found. Thanks in advance.
Brenda.
 
J

JE McGimpsey

One way, array-entered (CTRL-SHIFT-ENTER or CMD-RETURN):

Assuming your range is named rng,

=SUM(LEN(rng)-LEN(SUBSTITUTE(rng,",","")))
 

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

Top