Aug 10 2020 06:35 AM
Bonjour,
Je rencontre un problème pour dénombrer des lignes contenant différents critères :
Les différentes tentatives de formules me renvoient "0" comme résultat dans la cellule finale.
Par avance, merci de votre aide.
Aug 10 2020 06:46 AM
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.
Aug 10 2020 06:55 AM
Bonjour Mathetes,
Merci pour votre réponse très réactive.
Le fichier simplifié en pièce jointe.
Aug 11 2020 12:54 AM
SolutionBonjour,
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!
Aug 11 2020 06:08 AM
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.
Aug 11 2020 06:34 AM
@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).
Aug 11 2020 11:20 AM
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.
Aug 11 2020 12:54 AM
SolutionBonjour,
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!