Count of values within a cell?

J

jeff.fry

Hi,

I have a spreadsheet containing a row with data something like:
A | B
____________
1 | 1111
2 | 1112, 1113, 1114
3 |
4 | 1115

If I were to do a COUNTA(B:B) I would see a count of 3. What I'd *like*
to find is a way to see a count of all numbers in that row (in this
case, a count of 5).

Any suggestions?

Thanks!
Jeff
 
B

Bob Phillips

=SUMPRODUCT(--(B1:B100<>""),(LEN(B1:B100)-LEN(SUBSTITUTE(B1:B100,",",""))+1)
)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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