Google Groupes n'accepte plus les nouveaux posts ni abonnements Usenet. Les contenus de l'historique resteront visibles.

Count with criteria

0 vue
Accéder directement au premier message non lu

NM

non lue,
12 nov. 2008, 11:21:0112/11/2008
à
Hi,

I have a column B which can have input as 1, 0,a or sh. Another Column C can
have input as I,D,X,M. I want to count the number of "I"s in column C which
have "1" in column B. In other words if column B has o ans column c has I , I
do not want to count it.

Column B Column C
1 I
0 I
sh D

Thanks for your help.

John C

non lue,
12 nov. 2008, 11:27:0112/11/2008
à
A1: 1
A2: I
=SUMPRODUCT(--($B$2:$B$100=A1),--($C$2:C$100=A2))
--
** John C **
Please remember if your question is answered, to mark it answered :). It
helps everyone.

Sheeloo 95 64

non lue,
12 nov. 2008, 11:27:0212/11/2008
à
Try this in A1 (or anywhere other than B1:C100)

=SUMPRODUCT(--(B1:B100=1),--(C1:C100="I"))

Adjust 100 to the last row in your data set.

Pete_UK

non lue,
12 nov. 2008, 11:31:4712/11/2008
à
Try this:

=SUMIF(C:C,"I",B:B)

Hope this helps.

Pete

Mike H

non lue,
12 nov. 2008, 11:29:0212/11/2008
à
Try this

=SUMPRODUCT((B1:B30=1)*(C1:C30="I"))

Mike

NM

non lue,
12 nov. 2008, 15:26:1112/11/2008
à
Thanks much! It works!
0 nouveau message