a count formula

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like a formula to count how many cells contain a code that begin with
B, then with Z and O.

So B's would be 3 Z's 5 and O's 1.

1 BBL
2 BBL
3 BBL
4 ZZ3
5 ZXX
6 ZZ1
7 ZZ1
8 ZZ6
9 ODA
 
Hi

use
=sumproduct(--(left(a2:a100,1)="B"))
or

=sumproduct(--(left(a2:a100,1)=b4))

hth
regards from Brazil
Marcelo



"TMF in MN" escreveu:
 
=SUMPRODUCT(--(LEFT(A1:A10)="B"))
=SUMPRODUCT(--(LEFT(A1:A10)="Z"))
=SUMPRODUCT(--(LEFT(A1:A10)="O"))
 

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