SOLVED

Dénombrement selon plusieurs critères

Copper Contributor

Bonjour,

 

Je rencontre un problème pour dénombrer des lignes contenant différents critères : 

  • 1 nom (chaîne de caractères) parmi 3 en colonne G
  • 1 ou 2 statuts (chaîne de caractères) parmi 4 en colonne 

Les différentes tentatives de formules me renvoient "0" comme résultat dans la cellule finale.

 

Par avance, merci de votre aide.

6 Replies

@Belz29 

 

It's very difficult to visualize this without actually seeing your spreadsheet. Is it possible for you to post a copy of it, just making sure no private or confidential information is included.

@mathetes 

Bonjour Mathetes,

 

Merci pour votre réponse très réactive.

Le fichier simplifié en pièce jointe.

best response confirmed by Belz29 (Copper Contributor)
Solution

Bonjour,

 

Merci @mathetes , j'ai finalement réussi à trouver la solution par mes propres moyens.

La formule NB.SI.ENS m'a permis d'automatiser mon tableau, et ainsi de gagner de précieuses minutes chaque semaine (fichier corrigé en pièce jointe).

Bonne journée!

@Belz29 

 

Well done. I have added a slight modification to yours in the attached. You had "hard-coded" the variables into your COUNTIFS formulas. I made those references to other cells, and that makes it possible to copy the same formula from cell D5 into all of the cells I've highlighted with the light green background.

mathetes_0-1597150970809.png

 

@mathetes Un grand merci pour votre aide! Faire référence à des cellules plutôt qu'à leur valeur va en effet m'aider pour les prochaines évolutions (le fichier est bien plus complet et complexe que l'échantillon que je vous ai transmis).

@Belz29 

 

In general, you should avoid "hard-coding" values into formulas. That always places restrictions on any future use, any expansion...  And so often values change.

 

To take an example, if you had a figure for "sales tax" that has been the same for the last two or three (or twenty) years, it still could change next year. A lot better to refer to a cell that contains the value, than to have that value written into each formula that uses it.

 

Best of all, use a named range so that your formula reads =ProdCost * SalesTax  and then when SalesTax is changed, the formula automatically is up-to-date.

1 best response

Accepted Solutions
best response confirmed by Belz29 (Copper Contributor)
Solution

Bonjour,

 

Merci @mathetes , j'ai finalement réussi à trouver la solution par mes propres moyens.

La formule NB.SI.ENS m'a permis d'automatiser mon tableau, et ainsi de gagner de précieuses minutes chaque semaine (fichier corrigé en pièce jointe).

Bonne journée!

View solution in original post