View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mary-Lou
 
Posts: n/a
Default Need help with Countif function

Thanks. I'm getting the same results when I tried the array Max included - 0
value displays within the cell, but when editting the function, the formula
results display a value.

The sentences within Column A can be really wonky and could be very long -
can the funny results be because of the data within Column A?

"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(ISNUMBER(SEARCH("XX",A1:A100))),--(B1:B100="XXXX"))

Biff

"Mary-Lou" wrote in message
...
I need to count two different text values within two columns.

Column A contains sentences and Column B contains various values.

Example of small sentences in Column A:
Custom XX Upgrade
Printing reports on XX
Custom YY Upgrade

Example of values in Column B:
AAAA
BBBB
BBBB

What I need to do is count groups of records, like only counting the
records
that contain "XX" anyplace witihin Column A plus have "XXXX" in Column B.

I tried countif statements with no success. Any ideas?