Find link between which order supplies which demand!!

Status
Not open for further replies.

mergim

New Member
Joined
Nov 24, 2020
Messages
49
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I am trying to find a link between which purchase order will supply which work order demand. For example, the first work order, 43081340 will be supplied by the first purchase order 59747( )(1)(1) as 100.000 can cover 25.459.
The same goes for the next work order, 43081341, again, here the first purchase order 59747( )(1)(1) will also be able to supply this amount as 25.459 + 23.189 are still not higher than 100.000. When the third work order comes, 43081094, here we have multiple purchase orders that would have to supply in order to cover the demand. Here we would need PO 59747 1-2, 1-3, and 1-4. Right now, I am doing this manually, so I hope you guys can help me with some sort of function or ideas. Please, feel free to ask for more info if needed.

*work order demand = is the material consumption


SORT DATEITEM NUMBERITEM DESCRIPTIONTYPEORDER NUMBERQTYDateAcumulatedLink
100001123456Apples
Purchase order​
59747( )(1)(1)​
100.000​
27-06-2023​
100.000​
1
100002123456Apples
Purchase order​
59747( )(1)(2)​
100.000​
27-06-2023​
200.000​
2
100003123456Apples
Purchase order​
59747( )(1)(3)​
100.000​
11-07-2023​
300.000​
2
100004123456Apples
Purchase order​
59747( )(1)(4)​
100.000​
11-07-2023​
400.000​
2
100005123456Apples
Purchase order​
59747( )(1)(5)​
100.000​
25-07-2023​
500.000​
3
100006123456Apples
Purchase order​
59747( )(1)(6)​
100.000​
25-07-2023​
600.000​
3
100007123456Apples
Work order demand​
43081340​
- 25.459​
29-07-2023​
574.541​
1
100008123456Apples
Work order demand​
43081341​
- 23.189​
12-08-2023​
551.352​
1
100009123456Apples
Work order demand​
43081094​
- 258.238​
22-08-2023​
293.114​
2
100010123456Apples
Work order demand​
43081342​
- 23.138​
26-08-2023​
269.976​
2
100011123456Apples
Purchase order​
59747( )(1)(7)​
100.000​
05-09-2023​
369.976​
4
100012123456Apples
Purchase order​
59747( )(1)(8)​
100.000​
05-09-2023​
469.976​
5
100013123456Apples
Work order demand​
43081343​
- 28.908​
09-09-2023​
441.068​
2
100014123456Apples
Work order demand​
43081098​
- 234.584​
18-09-2023​
206.484​
3
100015123456Apples
Purchase order​
59747( )(1)(10)​
100.000​
19-09-2023​
306.484​
5
100016123456Apples
Purchase order​
59747( )(1)(9)​
100.000​
19-09-2023​
406.484​
6
100017123456Apples
Work order demand​
43081344​
- 29.070​
23-09-2023​
377.414​
4
100018123456Apples
Purchase order​
59747( )(1)(11)​
100.000​
03-10-2023​
477.414​
6
100019123456Apples
Purchase order​
59747( )(1)(12)​
100.000​
03-10-2023​
577.414​
6
100020123456Apples
Work order demand​
43081345​
- 29.851​
06-10-2023​
547.564​
4
100021123456Apples
Work order demand​
43081105​
- 234.024​
10-10-2023​
313.539​
6
100022123456Apples
Work order demand​
43081121​
- 294.219​
03-11-2023​
19.320​
6
100023123456Apples
Purchase order​
59747( )(1)(14)​
100.000​
07-11-2023​
119.320​
7
100024123456Apples
Purchase order​
59747( )(1)(13)​
100.000​
07-11-2023​
219.320​
7
100025123456Apples
Purchase order​
59747( )(1)(15)​
100.000​
14-11-2023​
319.320​
7
100026123456Apples
Work order demand​
43081127​
- 296.003​
28-11-2023​
23.317​
7
100027123456Apples
Purchase order​
59747( )(1)(16)​
100.000​
05-12-2023​
123.317​
8
100028123456Apples
Purchase order​
59747( )(1)(17)​
100.000​
19-12-2023​
223.317​
8
100029123456Apples
Purchase order​
59747( )(1)(18)​
100.000​
19-12-2023​
323.317​
8
100030123456Apples
Work order demand​
43081135​
- 304.108​
26-12-2023​
19.209​
8
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
This appears to be a duplicate/continuation of this thread: Function to show which value belongs to which

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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