Fill order by priority power query

tintin1012000

Board Regular
Joined
Apr 27, 2011
Messages
237
Hello

I have attached a link to sample Link to file

I have a table from sales orders which shows product name along with the items required to build product, quantity required and in what order to build.
in table 2 i have an output table from Production.

i need to merge these tables but my problem is that some materials required to build product A are shared with product B and so on
i want the query to assign values based on priority so that i can see what materials im short

desired outcome is in sheet 3 of attached link

Thanks all
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
what is the logic for this
SALES_REQUESTMATERIALQTYPRIORITYQTY BY PRIORITY FILL
AWIDGET110110
BWIDGET198277
CWIDGET112330
DWIDGET19840
AWIDGET210110
BWIDGET298233
DWIDGET29840
AWIDGET310110
DWIDGET398414
AWIDGET410110
CWIDGET4123355
BWIDGET598221
CWIDGET6123388
CWIDGET71233123
SPAREWIDGET7XX77
 
Upvote 0
what is the logic for this
BWIDGET198277
CWIDGET112330
DWIDGET19840

the logic is that widget 1 has a qty requirement of 10 parts which is fulfilled because its a number 1 priority
the remaining parts produced are given to widget1 priority 2. only 77 parts remaining
production department only produced a total of 87 widget 1
 
Upvote 0

Forum statistics

Threads
1,223,764
Messages
6,174,362
Members
452,558
Latest member
jswan83

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