How to use index match to calculate inventory transfer

xinyan1129

New Member
Joined
Feb 22, 2017
Messages
11
Hi there,

I would like to create a formula in column I to calculate which branch can transfer out stocks to those fast moving branches within same country.

Refer to below table:
Branch code 2002 (in Malaysia), my stock on hand is 1 pc, sales per month is 6 pcs, I have to transfer in about 5 pcs, how can I create a formula in column I to get few matching branches within same country which can transfer according to my "Transfer In Qty". The result must be deducted and cannot be repeated if the quantity already fully transferred out.

ABCDEFGHI
Branch CodeProduct CodeProduct NameStock on HandSales per monthCountryTransfer In QtyTransfer Out QtyTransfer from Country Code
2001A2A2 Food
5​
1​
Malaysia
4​
2002A2A2 Food
1​
6​
Malaysia
5​
2001-4 pcs, 2003-1 pcs
2003A2A2 Food
3​
0​
Malaysia
3​
2007A2A2 Food
15​
8​
Taiwan
7​
2008A2A2 Food
2​
0​
HK
2​
2010A2A2 Food
2​
6​
Malaysia
4​
2003-2 pcs, 2015-2 pcs
2015A2A2 Food
5​
1​
Malaysia
4​
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,224,819
Messages
6,181,153
Members
453,021
Latest member
Justyna P

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