2017-03-09 13 views
0

以下の式が機能し、セル範囲を変更できるようにINDIRECTを使用してこれを変更しようとしていますより簡単に。私はこれを実行しようとしましたが、答えはCOUNTIFSため#VALUE!と130206として出てきた['Other materials'!B2:B344]['Other materials'!X2:Y344)]を代用し、この[=INDIRECT("'" & B6 & "'!" & B7 & ":" & B8)]INDIRECTを使用してCOUNTIFS/SUMIF(S)式内のセル範囲を参照する(エラーが発生した)

を使用して範囲を編集できるようにしたい

=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)

SUMIFの場合は122の代わりに。

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)

誰かが私が間違っているつもりですどこ私を見ると、私はそれが正しく機能するために得る助けてくださいことはできますか?

「間接式で使用される値は、B6 =他の材料(データが存在する作業シート)です、:あなたの説明を考慮しているため

おかげ

+0

B6 =その他の材料(データが存在するワークシート)、B7 = 2(データが開始する行、これは変更しないでください)、B8 = 344 )データが終了すると変化します。 –

答えて

0

は、同様の列を配置しよう他の材料2!:B7 = 2(データが開始されている行、これは変更すべきではありません)、B8 = 344"

あなたの式がどのように見える」:344"

そうな値は次のようになります。 B7 = "B2"、B8 = "B344"、例えば

+0

間接式を編集して、「その他の材料」シートを使ってセルを指すようにする方法はありますか?他のシートにあるスタッドを計算するには同じ範囲を使用する必要があります「その他の資料」ワークシートの列 –

+0

INDIRECT(ADDRESS())の式を使用して、指しているセルを動的に定義することができます https://support.office.com/en-us/article/ADDRESS-function-d0c26c0d-3991-446b-8de4 -ab46431d4f89 –

関連する問題