PC Review


Reply
Thread Tools Rate Thread

Counting cells

 
 
Adel Handal
Guest
Posts: n/a
 
      9th Nov 2006
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 D529 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"), (D529,"M")
but had an error

Khalil


 
Reply With Quote
 
 
 
 
=?Utf-8?B?RmxvTU0y?=
Guest
Posts: n/a
 
      10th Nov 2006
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(D529,"m"),0)"
This will put a zero, if column C has no "C" in it.
HTH
"Adel Handal" wrote:

> 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 D529 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"), (D529,"M")
> but had an error
>
> Khalil
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting highlighted cells or font color cells Tired Dan Microsoft Excel Discussion 0 10th Dec 2007 11:50 PM
counting highlighted cells or font color cells Tired Dan Microsoft Excel Discussion 0 10th Dec 2007 11:41 PM
Complicated counting of cells (based on other cells contents) =?Utf-8?B?R2Vvcmdl?= Microsoft Excel Worksheet Functions 3 7th Nov 2005 07:39 PM
counting specific figures in cells dependant upon contents of adjacent cells judoist Microsoft Excel Discussion 2 15th Jun 2004 03:45 PM
Counting Number of Cells Including Merged Cells Daniel D. Microsoft Excel Worksheet Functions 12 24th Feb 2004 02:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:54 PM.