GNT sans publicité, site mobile, fonctionnalitées exclusives...

NB.SI

Le
Dominique
bonjour
Pouvez vous m'aider à trouver une formule.
j'ai cette formule qui compte le nombre de cellule, en H3:H131,
superieur à 0.
=NB.SI(Calculateur!H3:H131;">0")
mais je voudrais aussi rajouter un critere :
si la somme de ck:cp est different de 0.
exemple

H CK CL CM CN CO CP
0 1 1 1 0 2 1 ne pas compté
1 0 0 0 0 0 0 ne pas compté
1 1 0 0 1 0 1 compté
2 3 2 2 2 2 2 compté

nombre = 2

,
Merci pour votre aide
Lire les 12 réponses

Vidéos High-Tech et Jeu Vidéo
Téléchargements
Vos réponses Page 1 / 3
Gagnez chaque mois un abonnement Premium avec GNT : Inscrivez-vous !
Trier par : date / pertinence
PierreB
Le #21414981
Le 21/03/2010 14:12, Dominique a écrit :
bonjour
Pouvez vous m'aider à trouver une formule.
j'ai cette formule qui compte le nombre de cellule, en H3:H131,
superieur à 0.
=NB.SI(Calculateur!H3:H131;">0")
mais je voudrais aussi rajouter un critere :
si la somme de ck:cp est different de 0.
exemple

H CK CL CM CN CO CP
0 1 1 1 0 2 1 ne pas compté
1 0 0 0 0 0 0 ne pas compté
1 1 0 0 1 0 1 compté
2 3 2 2 2 2 2 compté

nombre = 2

,
Merci pour votre aide




Bonjour,

Je n'ai pas testé mais il me semble que l'ajout de la fonction ET(
...)doit faire l'affaire:


=NB.SI(ET(Calculateur!H3:H131;">0";SOMME(CK:CP<>0));Calculateur!H3:H131;">0";"")

Pierre
Dominique
Le #21415101
bonjour
merci pour ton aide mais ca ne marche pas il y a un erreur.
=NB.SI(ET(Calculateur!H3:H131;">0";SOMME(CK:CP)<>0));Calculateur!H3:H131;">0";"")
j essaye avec sommeprod mais idem
isabelle
Le #21415231
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
bonjour Dominique,<br>
<br>
si tu peut ajouter une colonne "somme"<br>
<br>
<table x:str="" style="border-collapse: collapse; width: 298pt;"
width="399" border="0" cellpadding="0" cellspacing="0">
<col style="width: 32pt;" width="42"> <col style="width: 38pt;"
width="51" span="7"> <tbody>
align="center" height="51">H&nbsp;&nbsp;&nbsp;</td>
<td class="xl24" style="width: 38pt;" x:str="'somme
CK:CP"
width="51" align="center"><b>somme<br>
CK:CP</b></td>
<td class="xl22" style="width: 38pt;" width="51" align="center">CK</td>
<td class="xl22" style="width: 38pt;" width="51" align="center">CL</td>
<td class="xl22" style="width: 38pt;" width="51" align="center">CM</td>
<td class="xl22" style="width: 38pt;" width="51" align="center">CN</td>
<td class="xl22" style="width: 38pt;" width="51" align="center">CO</td>
<td class="xl22" style="width: 38pt;" width="51" align="center">CP</td>
</tr>
height="17">0</td>
<td class="xl23" x:num="" x:fmla="=((SUM(C2:H2))+0)*1"
align="center"><b>6</b></td>
<td class="xl22" x:num="" align="center">1</td>
<td class="xl22" x:num="" align="center">1</td>
<td class="xl22" x:num="" align="center">1</td>
<td class="xl22" x:num="" align="center">0</td>
<td class="xl22" x:num="" align="center">2</td>
<td class="xl22" x:num="" align="center">1</td>
</tr>
height="17">1</td>
<td class="xl23" x:num="" x:fmla="=((SUM(C3:H3))+0)*1"
align="center"><b>0</b></td>
<td class="xl22" x:num="" align="center">0</td>
<td class="xl22" x:num="" align="center">0</td>
<td class="xl22" x:num="" align="center">0</td>
<td class="xl22" x:num="" align="center">0</td>
<td class="xl22" x:num="" align="center">0</td>
<td class="xl22" x:num="" align="center">0</td>
</tr>
height="17">1</td>
<td class="xl23" x:num="" x:fmla="=((SUM(C4:H4))+0)*1"
align="center"><b>3</b></td>
<td class="xl22" x:num="" align="center">1</td>
<td class="xl22" x:num="" align="center">0</td>
<td class="xl22" x:num="" align="center">0</td>
<td class="xl22" x:num="" align="center">1</td>
<td class="xl22" x:num="" align="center">0</td>
<td class="xl22" x:num="" align="center">1</td>
</tr>
height="17">2</td>
<td class="xl23" x:num="" x:fmla="=((SUM(C5:H5))+0)*1"
align="center"><b>13</b></td>
<td class="xl22" x:num="" align="center">3</td>
<td class="xl22" x:num="" align="center">2</td>
<td class="xl22" x:num="" align="center">2</td>
<td class="xl22" x:num="" align="center">2</td>
<td class="xl22" x:num="" align="center">2</td>
<td class="xl22" x:num="" align="center">2</td>
</tr>
</tbody>
</table>
<br>
=SOMMEPROD((A3:A131&gt;0)*(B3:B131&gt;0))<br>
<br>
isabelle<br>
<br>
Le 2010-03-21 09:54, Dominique a &eacute;crit&nbsp;:
type="cite">bonjour
<br>
merci pour ton aide mais ca ne marche pas il y a un erreur.
<br>
=NB.SI(ET(Calculateur!H3:H131;"&gt;0";SOMME(CK:CP)&lt;&gt;0));Calculateur!H3:H131;"&gt;0";"")
<br>
j essaye avec sommeprod mais idem
<br>
<br>
</blockquote>
</body>
</html>
Dominique
Le #21415301
Le 21/03/2010 15:25, isabelle a écrit :
merci Isabelle,
mais malheureusement je ne peux pas toucher à la feuille, elle provient
d une extraction par macro.
la fonction NB.Si.ENS ne serait t elle pas plus adapté ? je vais essayer
mais sans conviction.
isabelle
Le #21415381
peut être avec une fonction perso,

Function MonNBSI(plg As Range, col1 As Integer, col2 As Integer)
For Each c In plg
If c col2))) <> 0 Then MonNBSI = MonNBSI + 1
Next
End Function

=MonNBSI(A3:A6;2;7)

isabelle

Le 2010-03-21 10:34, Dominique a écrit :
Le 21/03/2010 15:25, isabelle a écrit :
merci Isabelle,
mais malheureusement je ne peux pas toucher à la feuille, elle
provient d une extraction par macro.
la fonction NB.Si.ENS ne serait t elle pas plus adapté ? je vais
essayer mais sans conviction.



Publicité
Suivre les réponses
Poster une réponse
Anonyme