La formule ci-dessous fonctionne, j'essaie de changer cela en utilisant INDIRECT pour pouvoir changer les plages de cellules afin qu'elles puissent être mises à jour Plus facile.Utiliser INDIRECT pour faire référence à une plage de cellules dans une formule COUNTIFS/SUMIF (S) (Erreur survenue)
=SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!L2:L344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!N2:N344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!P2:P344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!R2:R344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!T2:T344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!V2:V344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!X2:X344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!Z2:Z344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!AB2:AB344)
Je veux remplacer le ['Other materials'!B2:B344]
et ['Other materials'!X2:Y344)]
et être en mesure de modifier les plages en utilisant ce [=INDIRECT("'" & B6 & "'!" & B7 & ":" & B8)]
J'ai essayé de le faire, mais les réponses sont venus comme #VALUE!
pour la COUNTIFS
et 130206 au lieu de 122 pour le SUMIF
.
SUMIF where substituted:=SUMIF((INDIRECT("'" & B6 & "'!" & B7 & ":" & B8)), "*Germany*", 'Other materials'!L2:L344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!N2:N344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!P2:P344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!R2:R344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!T2:T344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!V2:V344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!X2:X344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!Z2:Z344)+SUMIF('Other materials'!B2:B344, "*Germany*", 'Other materials'!AB2:AB344)
Quelqu'un peut-il s'il vous plaît me montrer où je me trompe et me aider à faire fonctionner correctement?
Merci
Les valeurs utilisées dans la formule INDIRECT sont B6 = Autres matériaux (La feuille de travail sur laquelle résident les données), B7 = 2 (La ligne sur laquelle les données commencent ne doit pas changer), B8 = 344 (La rangée sur lequel les données se terminent, cela change à mesure que les choses sont ajoutées.) –