On Sun, 22 Feb 2009 03:07:01 -0800, John
<(E-Mail Removed)> wrote:
>How do I count the number of cells in a range that contain the character
>substring xxx?
>
>I know =COUNTIF($G$8:$G$11,"kkkk") counts cells that are exactly kkkk, but i
>want to count cells that congaing a substring.
>
>I appreciate your help, -John
Try this formula:
=SUMPRODUCT(--NOT(ISERROR(FIND("kkkk",G8:G11))))
If you don't care about lower and upper case, you can try this:
=SUMPRODUCT(--NOT(ISERROR(SEARCH("kkkk",G8:G11))))
Hope this helps / Lars-Åke
|