Custom sorting?

adrianpuscsu

New Member
Joined
Nov 23, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to find a solution to automatically optimize a production plan.
This is the available data:
1. Factory X is able to manufacture the following semi-product: A, B, C, D, E, F, G, H, I, J, K, L & M.
2. According to the daily requirement of the final product, factory X should produce the semi-products like this:
test.xlsb
AB
117/11C
217/11E
317/11H
417/11I
518/11B
618/11G
718/11I
818/11I
919/11H
1019/11I
1119/11I
1219/11M
1320/11G
1420/11M
1521/11I
1621/11I
1722/11B
1822/11I
1922/11I
2022/11I
2123/11B
2223/11E
2323/11G
2423/11G
2524/11F
2624/11F
2724/11I
2824/11I
2925/11B
3025/11I
3125/11I
3225/11I
3326/11G
3426/11I
3526/11I
3626/11M
Sheet1

3. What I am trying to achieve is to decrease the number of semi-product changes, while not moving the production from one day to another. The only limitation is that the factory can manufacture one product in a sequence of maximum 4 batches. Therefore, the results should look like this:
test.xlsb
DE
117/11C
217/11E
317/11H
417/11I
518/11B
618/11G
718/11I
818/11I
919/11I
1019/11I
1119/11H
1219/11M
1320/11M
1420/11G
1521/11I
1621/11I
1722/11I
1822/11I
1922/11I
2022/11B
2123/11B
2223/11E
2323/11G
2423/11G
2524/11F
2624/11F
2724/11I
2824/11I
2925/11I
3025/11I
3125/11B
3225/11I
3326/11I
3426/11I
3526/11G
3626/11M
Sheet1


Can you please help me with an any idea on how I could achieve something like this?

Thank you!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hello,

I am trying to find a solution to automatically optimize a production plan.
This is the available data:
1. Factory X is able to manufacture the following semi-product: A, B, C, D, E, F, G, H, I, J, K, L & M.
2. According to the daily requirement of the final product, factory X should produce the semi-products like this:
test.xlsb
AB
117/11C
217/11E
317/11H
417/11I
518/11B
618/11G
718/11I
818/11I
919/11H
1019/11I
1119/11I
1219/11M
1320/11G
1420/11M
1521/11I
1621/11I
1722/11B
1822/11I
1922/11I
2022/11I
2123/11B
2223/11E
2323/11G
2423/11G
2524/11F
2624/11F
2724/11I
2824/11I
2925/11B
3025/11I
3125/11I
3225/11I
3326/11G
3426/11I
3526/11I
3626/11M
Sheet1

3. What I am trying to achieve is to decrease the number of semi-product changes, while not moving the production from one day to another. The only limitation is that the factory can manufacture one product in a sequence of maximum 4 batches. Therefore, the results should look like this:
test.xlsb
DE
117/11C
217/11E
317/11H
417/11I
518/11B
618/11G
718/11I
818/11I
919/11I
1019/11I
1119/11H
1219/11M
1320/11M
1420/11G
1521/11I
1621/11I
1722/11I
1822/11I
1922/11I
2022/11B
2123/11B
2223/11E
2323/11G
2423/11G
2524/11F
2624/11F
2724/11I
2824/11I
2925/11I
3025/11I
3125/11B
3225/11I
3326/11I
3426/11I
3526/11G
3626/11M
Sheet1


Can you please help me with an any idea on how I could achieve something like this?

Thank you!
Sorry, I just realized that maybe more information is needed.
1. In this example, the factory has 2 production lines
2. One batch takes 12 hours to complete, therefore the factory can produce 4 batches in 24 hours.
3. The "original" data is calculated using VBA to connect to SAP for exporting the current semi-product stock + the requirement from a different Excel file.
I am just missing an automatic solution for distributing the semi-products manufacturing, taking into account the limitations.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

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