if, and, then formula

G

Guest

I'm trying to make a formula such that if a column has alphabetical digits
[E,I, M,P,...] and the column beside it has numerical digits [5, 6, 8...], I
can relate the number of times I matches with 6. I cannot do just a simple
countif and subtraction formula as sometimes the 6 matches with E. I tried:
=if(E21:e25,"I")and(D21:d25,"6")then(countif(e21:e25,"I")) but that only
results in an error. However, that might give an idea of what I'm looking
for.
Thanks!
 
G

Guest

Should be...

=Sumproduct(--(E21:E25="E"),--(D21:D25=6))


Toppers said:
=Sumproduct(--(E21:E25)="E"),--(D21:D25=6))

Booklover32 said:
I'm trying to make a formula such that if a column has alphabetical digits
[E,I, M,P,...] and the column beside it has numerical digits [5, 6, 8...], I
can relate the number of times I matches with 6. I cannot do just a simple
countif and subtraction formula as sometimes the 6 matches with E. I tried:
=if(E21:e25,"I")and(D21:d25,"6")then(countif(e21:e25,"I")) but that only
results in an error. However, that might give an idea of what I'm looking
for.
Thanks!
 

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

Similar Threads


Top