COUNTIF not counting properly!! Character limit?

  • Thread starter Thread starter kytihu
  • Start date Start date
K

kytihu

I have a list of cells with text. I want to count how many times eac
unique text cell appears. However, countif is having troubl
accurately distinguishing between unique cells

Ex:
ALLSTATE INSURANCE CO.VAN??
ALLSTATE INSURANCE CO.VANIL

If I were to ask it how many times ALLSTATE INSURANCE CO.VAN?? appeare
in this range of two cells, it would tell me 2, although the correc
answer is obviously 1. Is there a character limit for countif? Why i
it missing this simply calculation
 
If you are trying to match a literal question mark (which is a wildcar
for any single character) you need to prepend a tilde (~) to it.

=COUNTIF(E7:E8,"ALLSTATE INSURANCE CO.VAN~?~?")

Otherwise, without the tildes,
=COUNTIF(E7:E8,"ALLSTATE INSURANCE CO.VAN??")
will match on ALLSTATE INSURANCE CO.VAN followed by any 2 characters.


Does that help?

Regards,
Ro
 

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