Hi, I want to sum n values in sheet 2, if the same rows in sheet1 it's the bottom n values.
For example:
[TABLE="width: 320"]
<tbody>[TR]
[TD="class: xl65, width: 128, colspan: 2"]Sheet 1[/TD]
[TD="width: 64"][/TD]
[TD="class: xl65, width: 128, colspan: 2"]Sheet 2[/TD]
[/TR]
[TR]
[TD="class: xl64"]A[/TD]
[TD="class: xl64, align: right"]8[/TD]
[TD][/TD]
[TD="class: xl64"]A[/TD]
[TD="class: xl64, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl64"]B[/TD]
[TD="class: xl64, align: right"]3[/TD]
[TD][/TD]
[TD="class: xl64"]B[/TD]
[TD="class: xl64, align: right"]15[/TD]
[/TR]
[TR]
[TD="class: xl64"]C[/TD]
[TD="class: xl64, align: right"]2[/TD]
[TD][/TD]
[TD="class: xl64"]C[/TD]
[TD="class: xl64, align: right"]14[/TD]
[/TR]
[TR]
[TD="class: xl64"]D[/TD]
[TD="class: xl64, align: right"]7[/TD]
[TD][/TD]
[TD="class: xl64"]D[/TD]
[TD="class: xl64, align: right"]3[/TD]
[/TR]
[TR]
[TD="class: xl64"]E[/TD]
[TD="class: xl64, align: right"]10[/TD]
[TD][/TD]
[TD="class: xl64"]E[/TD]
[TD="class: xl64, align: right"]4[/TD]
[/TR]
[TR]
[TD="class: xl64"]F[/TD]
[TD="class: xl64, align: right"]1[/TD]
[TD][/TD]
[TD="class: xl64"]F[/TD]
[TD="class: xl64, align: right"]20[/TD]
[/TR]
[TR]
[TD="class: xl64"]G[/TD]
[TD="class: xl64, align: right"]4[/TD]
[TD][/TD]
[TD="class: xl64"]G[/TD]
[TD="class: xl64, align: right"]7[/TD]
[/TR]
[TR]
[TD="class: xl64"]H[/TD]
[TD="class: xl64, align: right"]5[/TD]
[TD][/TD]
[TD="class: xl64"]H[/TD]
[TD="class: xl64, align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]
So in this case, if n=3, the bottom 3 value are F, C, B.
So the formula should sum F,C,B in sheet 2: 20+14+15= 49
Thanks in advance
For example:
[TABLE="width: 320"]
<tbody>[TR]
[TD="class: xl65, width: 128, colspan: 2"]Sheet 1[/TD]
[TD="width: 64"][/TD]
[TD="class: xl65, width: 128, colspan: 2"]Sheet 2[/TD]
[/TR]
[TR]
[TD="class: xl64"]A[/TD]
[TD="class: xl64, align: right"]8[/TD]
[TD][/TD]
[TD="class: xl64"]A[/TD]
[TD="class: xl64, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl64"]B[/TD]
[TD="class: xl64, align: right"]3[/TD]
[TD][/TD]
[TD="class: xl64"]B[/TD]
[TD="class: xl64, align: right"]15[/TD]
[/TR]
[TR]
[TD="class: xl64"]C[/TD]
[TD="class: xl64, align: right"]2[/TD]
[TD][/TD]
[TD="class: xl64"]C[/TD]
[TD="class: xl64, align: right"]14[/TD]
[/TR]
[TR]
[TD="class: xl64"]D[/TD]
[TD="class: xl64, align: right"]7[/TD]
[TD][/TD]
[TD="class: xl64"]D[/TD]
[TD="class: xl64, align: right"]3[/TD]
[/TR]
[TR]
[TD="class: xl64"]E[/TD]
[TD="class: xl64, align: right"]10[/TD]
[TD][/TD]
[TD="class: xl64"]E[/TD]
[TD="class: xl64, align: right"]4[/TD]
[/TR]
[TR]
[TD="class: xl64"]F[/TD]
[TD="class: xl64, align: right"]1[/TD]
[TD][/TD]
[TD="class: xl64"]F[/TD]
[TD="class: xl64, align: right"]20[/TD]
[/TR]
[TR]
[TD="class: xl64"]G[/TD]
[TD="class: xl64, align: right"]4[/TD]
[TD][/TD]
[TD="class: xl64"]G[/TD]
[TD="class: xl64, align: right"]7[/TD]
[/TR]
[TR]
[TD="class: xl64"]H[/TD]
[TD="class: xl64, align: right"]5[/TD]
[TD][/TD]
[TD="class: xl64"]H[/TD]
[TD="class: xl64, align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]
So in this case, if n=3, the bottom 3 value are F, C, B.
So the formula should sum F,C,B in sheet 2: 20+14+15= 49
Thanks in advance