countif cell reference

B

Bob

Hello -

I'm using this formula to count the number of cells that
contain a text string:

=COUNTIF(A5:A5000,"*WAY*")

This works just fine but how can I replace the criteria
with a cell reference? Notice that I'm using wildcards.
I've tried it with many variations using INDIRECT but none
worked.

This has got to be pretty simple but I'm drawing blanks!
Any ideas?

Thanks
Bob P.
 
B

Bob

Thanks Aladin. I could swear that I had tried that syntax
and it didn't work!!!!.....but it works now!!! Thanks
again.

Bob P.
 

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