sumproduct text

A

A.Mourice

Hello,

A1 A,B,X,C,X
A2 X,D,G,X
A3 F,G,K,L,X


I need to count how many X repeated at many cells using sumproduct function.
 
G

Gary''s Student

To count the number of X's, use:

=LEN(A1&A2&A3)-LEN(SUBSTITUTE(A1&A2&A3,"X",""))

this will show 5 for your posted data.
 
A

A.Mourice

I use the same equation at the following, but it didn't work

A1 1-, 2-, 3-,
A2 2-, 1-, 10-
A3 3-, 1-, 2-, 1-

I need to count how many 1- using sumproduct function

Thanks
 
G

Gary''s Student

changing the formula:

=LEN(A1&A2&A3)-LEN(SUBSTITUTE(A1&A2&A3,"1-",""))

you should see 8
 

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