Hello everybody
The following situation I'm struggling for some time right now, I feel like I'm close to solving it, though I do not succeed.
What I want:
Let's say that in sheet 1 I have one table containing data, with a header, names and amounts.
In sheet 2 I want to lookup the sum of amounts based on names and the dynamic header.
For example:
Table sheet 1:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Animal[/TD]
[TD]Costs[/TD]
[/TR]
[TR]
[TD]Monkey[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Monkey[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Rabbit[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Monkey[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
And sheet 2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Costs[/TD]
[/TR]
[TR]
[TD]Monkey[/TD]
[TD]17[/TD]
[/TR]
[TR]
[TD]Rabbit[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
I want the formula for B2, B3 and B4, but since the headers in sheet 1 are dynamically I don't want a fixed formula. I guess it needs to be something with Sumifs, Vlookup and match. But Im not sure how to do it exactly.
Hope you can help me out.
The following situation I'm struggling for some time right now, I feel like I'm close to solving it, though I do not succeed.
What I want:
Let's say that in sheet 1 I have one table containing data, with a header, names and amounts.
In sheet 2 I want to lookup the sum of amounts based on names and the dynamic header.
For example:
Table sheet 1:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Animal[/TD]
[TD]Costs[/TD]
[/TR]
[TR]
[TD]Monkey[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]Monkey[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]Rabbit[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]Monkey[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
And sheet 2
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]Costs[/TD]
[/TR]
[TR]
[TD]Monkey[/TD]
[TD]17[/TD]
[/TR]
[TR]
[TD]Rabbit[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]Dog[/TD]
[TD]4[/TD]
[/TR]
</tbody>[/TABLE]
I want the formula for B2, B3 and B4, but since the headers in sheet 1 are dynamically I don't want a fixed formula. I guess it needs to be something with Sumifs, Vlookup and match. But Im not sure how to do it exactly.
Hope you can help me out.