Counting values in a range

K

Khalil Handal

Hi to all,

Range C5:C32 contains letters either "C" or "M"

Range D5:D32 contains letters either "M" or "F"



I want to count the number of combinations of the letters which are as
follows:

CM

CF

MM

MF

Starting cell D35 growing down to cell D38

I tried to write an array formula but always having an error.



Thanks in Advance



Khalil Handal
 
J

jeff.t

Hi

I'd simply use columns E, F, G, & H (which can be hidden if wanted) and
insert the following in each:-

E =IF(AND(C5="C",D5="M"),1,0)

F =IF(AND(C5="C",D5="F"),1,0)

G =IF(AND(C5="M",D5="M"),1,0)

H =IF(AND(C5="M",D5="F"),1,0)

Then sum each of these columns in row 33 and use in cell D35 " =E33",
D36 " =F33" etc

It's not elegant but simple and it works

Jeff
 
A

Adel Handal

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