titamagochang
New Member
- Joined
- Mar 3, 2016
- Messages
- 5
Hi...
I hope someone could show me the right direction here...
So, here is my table :
A B C D E F G H I J K L M
[TABLE="width: 896"]
<tbody>[TR]
[TD="class: xl66, width: 64"]ID[/TD]
[TD="class: xl66, width: 64"]STORE[/TD]
[TD="class: xl66, width: 64"]MILK[/TD]
[TD="class: xl66, width: 64"]BREAD[/TD]
[TD="class: xl66, width: 64"]MILK[/TD]
[TD="class: xl66, width: 64"]ORANGE[/TD]
[TD="class: xl66, width: 64"]COFFEE[/TD]
[TD="class: xl66, width: 64"]TEA[/TD]
[TD="class: xl66, width: 64"]BREAD[/TD]
[TD="class: xl66, width: 64"]COFFEE[/TD]
[TD="class: xl66, width: 64"]MILK[/TD]
[TD="class: xl66, width: 64"]BREAD[/TD]
[TD="class: xl66, width: 64"]ORANGE[/TD]
[TD="class: xl66, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl65"]103279[/TD]
[TD="class: xl66"]ABC[/TD]
[TD="class: xl66"]2[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]45[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"]16[/TD]
[TD="class: xl66"]17[/TD]
[TD="class: xl66"]18[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105629[/TD]
[TD="class: xl66"]DEF[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]45[/TD]
[TD="class: xl66"]24[/TD]
[TD="class: xl66"]56[/TD]
[TD="class: xl66"]24[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"]18[/TD]
[TD="class: xl66"]19[/TD]
[TD="class: xl66"]22[/TD]
[TD="class: xl66"]25[/TD]
[TD="class: xl66"]21[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105631[/TD]
[TD="class: xl66"]GHI[/TD]
[TD="class: xl66"]5[/TD]
[TD="class: xl66"]67[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"]16[/TD]
[TD="class: xl66"]27[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]17[/TD]
[TD="class: xl66"]27[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]106236[/TD]
[TD="class: xl66"]JKL[/TD]
[TD="class: xl66"]67[/TD]
[TD="class: xl66"]89[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]12[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]16[/TD]
[TD="class: xl66"]26[/TD]
[TD="class: xl66"]39[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]18[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]106246[/TD]
[TD="class: xl66"]MNO[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"]16[/TD]
[TD="class: xl66"]27[/TD]
[TD="class: xl66"]29[/TD]
[TD="class: xl66"]32[/TD]
[TD="class: xl66"]43[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105696[/TD]
[TD="class: xl66"]PQR[/TD]
[TD="class: xl66"]12[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]45[/TD]
[TD="class: xl66"]32[/TD]
[TD="class: xl66"]12[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]28[/TD]
[TD="class: xl66"]12[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]29[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105633[/TD]
[TD="class: xl66"]STU[/TD]
[TD="class: xl66"]18[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"]16[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]56[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]45[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]12[/TD]
[TD="class: xl66"]78[/TD]
[TD="class: xl66, align: right"]19[/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to SUM the rows and store it in the subtotal table below, i put the table in sheet2 :
[TABLE="width: 448"]
<tbody>[TR]
[TD="class: xl66, width: 64"]ID[/TD]
[TD="class: xl66, width: 64"]STORE[/TD]
[TD="class: xl66, width: 64"]MILK[/TD]
[TD="class: xl66, width: 64"]BREAD[/TD]
[TD="class: xl66, width: 64"]ORANGE[/TD]
[TD="class: xl66, width: 64"]COFFEE[/TD]
[TD="class: xl66, width: 64"]TEA[/TD]
[/TR]
[TR]
[TD="class: xl65"]103279[/TD]
[TD="class: xl66"]ABC[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105629[/TD]
[TD="class: xl66"]DEF[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105631[/TD]
[TD="class: xl66"]GHI[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]106236[/TD]
[TD="class: xl66"]JKL[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]106246[/TD]
[TD="class: xl66"]MNO[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105696[/TD]
[TD="class: xl66"]PQR[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105633[/TD]
[TD="class: xl66"]STU[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
</tbody>[/TABLE]
I tried to use SUMIFS, but my columns is about a hundred & my row is about 2 thousand cells...
I very new in using INDEX & MATCH formulas, so this is my attempts :
=SUM(INDEX(Sheet1!A:M8,MATCH(Sheet2!A2,Sheet1!A:A,MATCH(Sheet2!C1,Sheet1!C1:M1,0)),0))
I still use excel 2010.
Thank you
I hope someone could show me the right direction here...
So, here is my table :
A B C D E F G H I J K L M
[TABLE="width: 896"]
<tbody>[TR]
[TD="class: xl66, width: 64"]ID[/TD]
[TD="class: xl66, width: 64"]STORE[/TD]
[TD="class: xl66, width: 64"]MILK[/TD]
[TD="class: xl66, width: 64"]BREAD[/TD]
[TD="class: xl66, width: 64"]MILK[/TD]
[TD="class: xl66, width: 64"]ORANGE[/TD]
[TD="class: xl66, width: 64"]COFFEE[/TD]
[TD="class: xl66, width: 64"]TEA[/TD]
[TD="class: xl66, width: 64"]BREAD[/TD]
[TD="class: xl66, width: 64"]COFFEE[/TD]
[TD="class: xl66, width: 64"]MILK[/TD]
[TD="class: xl66, width: 64"]BREAD[/TD]
[TD="class: xl66, width: 64"]ORANGE[/TD]
[TD="class: xl66, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl65"]103279[/TD]
[TD="class: xl66"]ABC[/TD]
[TD="class: xl66"]2[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]45[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"]16[/TD]
[TD="class: xl66"]17[/TD]
[TD="class: xl66"]18[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105629[/TD]
[TD="class: xl66"]DEF[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]45[/TD]
[TD="class: xl66"]24[/TD]
[TD="class: xl66"]56[/TD]
[TD="class: xl66"]24[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"]18[/TD]
[TD="class: xl66"]19[/TD]
[TD="class: xl66"]22[/TD]
[TD="class: xl66"]25[/TD]
[TD="class: xl66"]21[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105631[/TD]
[TD="class: xl66"]GHI[/TD]
[TD="class: xl66"]5[/TD]
[TD="class: xl66"]67[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"]16[/TD]
[TD="class: xl66"]27[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]17[/TD]
[TD="class: xl66"]27[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]106236[/TD]
[TD="class: xl66"]JKL[/TD]
[TD="class: xl66"]67[/TD]
[TD="class: xl66"]89[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]12[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]16[/TD]
[TD="class: xl66"]26[/TD]
[TD="class: xl66"]39[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]18[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]106246[/TD]
[TD="class: xl66"]MNO[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"]16[/TD]
[TD="class: xl66"]27[/TD]
[TD="class: xl66"]29[/TD]
[TD="class: xl66"]32[/TD]
[TD="class: xl66"]43[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105696[/TD]
[TD="class: xl66"]PQR[/TD]
[TD="class: xl66"]12[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]45[/TD]
[TD="class: xl66"]32[/TD]
[TD="class: xl66"]12[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]28[/TD]
[TD="class: xl66"]12[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]29[/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105633[/TD]
[TD="class: xl66"]STU[/TD]
[TD="class: xl66"]18[/TD]
[TD="class: xl66"]15[/TD]
[TD="class: xl66"]16[/TD]
[TD="class: xl66"]13[/TD]
[TD="class: xl66"]14[/TD]
[TD="class: xl66"]56[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]45[/TD]
[TD="class: xl66"]23[/TD]
[TD="class: xl66"]12[/TD]
[TD="class: xl66"]78[/TD]
[TD="class: xl66, align: right"]19[/TD]
[/TR]
</tbody>[/TABLE]
I'm trying to SUM the rows and store it in the subtotal table below, i put the table in sheet2 :
[TABLE="width: 448"]
<tbody>[TR]
[TD="class: xl66, width: 64"]ID[/TD]
[TD="class: xl66, width: 64"]STORE[/TD]
[TD="class: xl66, width: 64"]MILK[/TD]
[TD="class: xl66, width: 64"]BREAD[/TD]
[TD="class: xl66, width: 64"]ORANGE[/TD]
[TD="class: xl66, width: 64"]COFFEE[/TD]
[TD="class: xl66, width: 64"]TEA[/TD]
[/TR]
[TR]
[TD="class: xl65"]103279[/TD]
[TD="class: xl66"]ABC[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105629[/TD]
[TD="class: xl66"]DEF[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105631[/TD]
[TD="class: xl66"]GHI[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]106236[/TD]
[TD="class: xl66"]JKL[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]106246[/TD]
[TD="class: xl66"]MNO[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105696[/TD]
[TD="class: xl66"]PQR[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl65"]105633[/TD]
[TD="class: xl66"]STU[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
</tbody>[/TABLE]
I tried to use SUMIFS, but my columns is about a hundred & my row is about 2 thousand cells...
I very new in using INDEX & MATCH formulas, so this is my attempts :
=SUM(INDEX(Sheet1!A:M8,MATCH(Sheet2!A2,Sheet1!A:A,MATCH(Sheet2!C1,Sheet1!C1:M1,0)),0))
I still use excel 2010.
Thank you