Multiple lookup and their Sumup

Swat84

New Member
Joined
Aug 2, 2017
Messages
1
I want to sum up the value for multiple lookup in the table and get their sum up value. Where i have SKU linked with another SKU and i need to know total value available.

For instance - SKU 2 122233 is part of 112131 and also 142434 , however 142434 is part of 475767 also. I want a report to tell me how much stock i have currently of 122233 - 150 and not only 50.
[TABLE="width: 448"]
<colgroup><col width="64" span="7" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"]A[/TD]
[TD="width: 64"]B[/TD]
[TD="width: 64"]C[/TD]
[TD="width: 64"]D[/TD]
[TD="width: 64"]E[/TD]
[TD="width: 64"]F[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]SKU 1[/TD]
[TD]SKU 2[/TD]
[TD]Qty[/TD]
[TD]SKU[/TD]
[TD]Stock[/TD]
[TD]SKU[/TD]
[/TR]
[TR]
[TD="align: right"]1[/TD]
[TD="align: right"]112131[/TD]
[TD="align: right"]122233[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]122233[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]112131[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[TD="align: right"]112131[/TD]
[TD="align: right"]132333[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]142434[/TD]
[TD="align: right"]25[/TD]
[TD="align: right"]142434[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[TD="align: right"]142434[/TD]
[TD="align: right"]778899[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]475767[/TD]
[TD="align: right"]75[/TD]
[TD="align: right"]475767[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[TD="align: right"]142434[/TD]
[TD="align: right"]122233[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[TD="align: right"]475767[/TD]
[TD="align: right"]142434[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[TD="align: right"]475767[/TD]
[TD="align: right"]374757[/TD]
[TD="align: right"]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 448"]
<colgroup><col width="64" span="7" style="width:48pt"></colgroup><tbody></tbody>[/TABLE]
So it should give me total of

In Column F 1 i did a formula ,=IFERROR(INDEX($B$3:$B$8,MATCH(0,INDEX(COUNTIF(G$2:$G2,$B$3:$B$8),,),0)),"")
and in G1 i did =SUMIF($B$3:$B$8,G3,$F$3:$F$5)

this is not working
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

Forum statistics

Threads
1,223,908
Messages
6,175,307
Members
452,633
Latest member
DougMo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top