I am trying to work out how to look in a cell and then look up to the top of the sheet in than column how many cells have the same value and sum the corresponding cells next to them data example below
[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="class: xl63, width: 64"]A[/TD]
[TD="class: xl63, width: 64"]B[/TD]
[TD="class: xl63, width: 64"]C[/TD]
[/TR]
[TR]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]WEST[/TD]
[TD="class: xl63"]3[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]EAST[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]3[/TD]
[TD="class: xl63"]WEST[/TD]
[TD="class: xl63"]4[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]4[/TD]
[TD="class: xl63"]WEST[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]5[/TD]
[TD="class: xl63"]WEST[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]6[/TD]
[TD="class: xl63"]EAST[/TD]
[TD="class: xl63"]5[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]7[/TD]
[TD="class: xl64"]WEST[/TD]
[TD="class: xl64"]TOTAL[/TD]
[TD="class: xl64"]10
[/TD]
[/TR]
</tbody>[/TABLE]
The answer would be 10 in this case as all the cells in A that = A7 the sum of the cells in B=10.
I can do this with a sumif but the location of the cells moves and there is more than 1 sum in the data but i need to to look upwards in all cells above and a sumif gives me a circular reference.
Any help appreciated
[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="class: xl63, width: 64"]A[/TD]
[TD="class: xl63, width: 64"]B[/TD]
[TD="class: xl63, width: 64"]C[/TD]
[/TR]
[TR]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"]WEST[/TD]
[TD="class: xl63"]3[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"]EAST[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]3[/TD]
[TD="class: xl63"]WEST[/TD]
[TD="class: xl63"]4[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]4[/TD]
[TD="class: xl63"]WEST[/TD]
[TD="class: xl63"]2[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]5[/TD]
[TD="class: xl63"]WEST[/TD]
[TD="class: xl63"]1[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]6[/TD]
[TD="class: xl63"]EAST[/TD]
[TD="class: xl63"]5[/TD]
[TD="class: xl63"] [/TD]
[/TR]
[TR]
[TD="class: xl63"]7[/TD]
[TD="class: xl64"]WEST[/TD]
[TD="class: xl64"]TOTAL[/TD]
[TD="class: xl64"]10
[/TD]
[/TR]
</tbody>[/TABLE]
The answer would be 10 in this case as all the cells in A that = A7 the sum of the cells in B=10.
I can do this with a sumif but the location of the cells moves and there is more than 1 sum in the data but i need to to look upwards in all cells above and a sumif gives me a circular reference.
Any help appreciated