Hello,
Does anyone know on how to combine SUMIF with INDEX MATCH. I have an issue whereby my lookup only identify first result that is in Sample C2. My intention that my formula will sum all the figure in column C i.e 700,000. My lookup value need to be maintain on Account number & Item no.
Sample
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Co Code[/TD]
[TD]Account Number[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]9099[/TD]
[TD]2170100[/TD]
[TD]659,000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]9099[/TD]
[TD]2170100[/TD]
[TD]2,300[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]9099[/TD]
[TD]2170100[/TD]
[TD]38,700[/TD]
[TD]56[/TD]
[/TR]
</tbody>[/TABLE]
My result using below formula.
=INDEX(Sample!A2:C4,MATCH(A2,Sample!B1:B4,0),MATCH(B2,Sample!C1:C2,0))
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Account Number[/TD]
[TD]Item[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2170100[/TD]
[TD]1[/TD]
[TD]659,000[/TD]
[/TR]
</tbody>[/TABLE]
Intended result
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Account Number[/TD]
[TD]Item[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2170100[/TD]
[TD]1[/TD]
[TD]700,000[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]3[/TD]
[TD]2170100[/TD]
[TD]2[/TD]
[TD]756[/TD]
[/TR]
</tbody>[/TABLE]
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">ABC1Account NumberItemAmount221701001700,000
Does anyone know on how to combine SUMIF with INDEX MATCH. I have an issue whereby my lookup only identify first result that is in Sample C2. My intention that my formula will sum all the figure in column C i.e 700,000. My lookup value need to be maintain on Account number & Item no.
Sample
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Co Code[/TD]
[TD]Account Number[/TD]
[TD]1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]9099[/TD]
[TD]2170100[/TD]
[TD]659,000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]9099[/TD]
[TD]2170100[/TD]
[TD]2,300[/TD]
[TD]700[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]9099[/TD]
[TD]2170100[/TD]
[TD]38,700[/TD]
[TD]56[/TD]
[/TR]
</tbody>[/TABLE]
My result using below formula.
=INDEX(Sample!A2:C4,MATCH(A2,Sample!B1:B4,0),MATCH(B2,Sample!C1:C2,0))
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Account Number[/TD]
[TD]Item[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2170100[/TD]
[TD]1[/TD]
[TD]659,000[/TD]
[/TR]
</tbody>[/TABLE]
Intended result
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Account Number[/TD]
[TD]Item[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]2170100[/TD]
[TD]1[/TD]
[TD]700,000[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]3[/TD]
[TD]2170100[/TD]
[TD]2[/TD]
[TD]756[/TD]
[/TR]
</tbody>[/TABLE]
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">ABC1Account NumberItemAmount221701001700,000
Last edited: