Counting cells

A

Adel Handal

Hi,
I had this before, but it didn't work weel! I may have not made it clear.

Range C5:C29 containes either letter C or letter M.
Range D5:D29 containes either letter M or letter F

line 5 C F
line 6 C M
line 7 M M
...........
In cell D34 I want to count the number of occurance of the combination of C
and M.
The array formula =COUNTIF(C5:C29,"C")
counts the value of colomn C.
What adjustment do I need to do to include the values in colomn D?
I tried this: =COUNTIF(C5:C29,"C"), (D5:D29,"M")
but had an error

Khalil
 
F

FloMM2

Adel,
This is what I came up with:
Column C Column D
C or M M or F
C5 thru C29 D5 thru D29

In cell C34, this formula:
"=IF(COUNTIF(C5:C29,"c"),COUNTIF(C5:C29,"c")+COUNTIF(D5:D29,"m"),0)"
This will put a zero, if column C has no "C" in it.
HTH
 

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