How to count the occurences in my range with 2 characters only?

  • Thread starter Thread starter Jen
  • Start date Start date
J

Jen

Hello There,

I am wondering how you can count the number of occurences in myRange that
contains 2 charters only?

This function does obviously not do the trick:
=SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange))))
Brgds Jen
 
Hi Pete,

Thanks! WHat it needs to do...! :)


How would an array-formula look like to do the same? I tried
Ctrl+Shift+Enter on =COUNTA(LEN(myRange)=2)
but that's not it.
Jen
 
You could try this:

=SUM(IF(LEN(myRange)=2,1))

commit with CTRL-SHIFT-ENTER.

Hope this helps.

Pete
 

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