Hello everyone.
I am trying to do a SUMIF where the range consists of multiple columns and rows rather than just a single column.
for example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Store 1[/TD]
[TD]Store 2[/TD]
[TD]Store 3[/TD]
[TD]Store 4[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]London[/TD]
[TD]Chicago[/TD]
[TD]Paris[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Paris[/TD]
[TD]NY[/TD]
[TD]Ottawa[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Edinburgh[/TD]
[TD]Ottawa[/TD]
[TD]Paris[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Edinburgh[/TD]
[TD]Ottawa[/TD]
[TD]Paris[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Chicao[/TD]
[TD]London[/TD]
[TD]Paris[/TD]
[TD]46[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]NY[/TD]
[TD]Berlin[/TD]
[TD]LA[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Wellington[/TD]
[TD]Montreal[/TD]
[TD]Paris[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Berlin[/TD]
[TD]Berlin[/TD]
[TD]Paris[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Ottawa[/TD]
[TD]Paris[/TD]
[TD]Ottawa[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]London[/TD]
[TD]Paris[/TD]
[TD]London[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Madrid[/TD]
[TD]London[/TD]
[TD]London[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
I want to add together all the Stock for my London stores. Note that the last two rows has London twice.
The sum of that stock is 87 (5+46+12+12+6+6)
I have been messing around with index/match, with CONCATENATE on the stores and using a FIND with a SUMIF, but so far I can't figure out a way of doing it.
But in the end I want a nice table like this-
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]City[/TD]
[TD]Sum of Stock[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Berlin[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Chicago[/TD]
[TD]51[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Edinburgh[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]London[/TD]
[TD]87[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]LA[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Madrid[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Montreal[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]NY[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Ottawa[/TD]
[TD]62[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Paris[/TD]
[TD]162[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Wellington[/TD]
[TD]44[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas anyone?
Thanks!
I am trying to do a SUMIF where the range consists of multiple columns and rows rather than just a single column.
for example:
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Store 1[/TD]
[TD]Store 2[/TD]
[TD]Store 3[/TD]
[TD]Store 4[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]London[/TD]
[TD]Chicago[/TD]
[TD]Paris[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Paris[/TD]
[TD]NY[/TD]
[TD]Ottawa[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Edinburgh[/TD]
[TD]Ottawa[/TD]
[TD]Paris[/TD]
[TD]21[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]Edinburgh[/TD]
[TD]Ottawa[/TD]
[TD]Paris[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Chicao[/TD]
[TD]London[/TD]
[TD]Paris[/TD]
[TD]46[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]NY[/TD]
[TD]Berlin[/TD]
[TD]LA[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Wellington[/TD]
[TD]Montreal[/TD]
[TD]Paris[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]Berlin[/TD]
[TD]Berlin[/TD]
[TD]Paris[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Ottawa[/TD]
[TD]Paris[/TD]
[TD]Ottawa[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]London[/TD]
[TD]Paris[/TD]
[TD]London[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Madrid[/TD]
[TD]London[/TD]
[TD]London[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
I want to add together all the Stock for my London stores. Note that the last two rows has London twice.
The sum of that stock is 87 (5+46+12+12+6+6)
I have been messing around with index/match, with CONCATENATE on the stores and using a FIND with a SUMIF, but so far I can't figure out a way of doing it.
But in the end I want a nice table like this-
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]F[/TD]
[TD]G[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]City[/TD]
[TD]Sum of Stock[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Berlin[/TD]
[TD]36[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Chicago[/TD]
[TD]51[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Edinburgh[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]London[/TD]
[TD]87[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]LA[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]Madrid[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Montreal[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]9[/TD]
[TD]NY[/TD]
[TD]18[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]Ottawa[/TD]
[TD]62[/TD]
[/TR]
[TR]
[TD]11[/TD]
[TD]Paris[/TD]
[TD]162[/TD]
[/TR]
[TR]
[TD]12[/TD]
[TD]Wellington[/TD]
[TD]44[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas anyone?
Thanks!