Formula for automation restructuring

Status
Not open for further replies.

dita87

New Member
Joined
Sep 29, 2014
Messages
15
Dear all,

I am struggling with a case, where I need to re-arrange a lot of numbers automatically based on certain criterias.

For example:
We have orders (always with numbers 123..) that are differentiated between
1. Country -at the end of the order is the destination
U stands for USA
D stands for Dubai
2. Brand- X, Y, Z
3. Commodity-Shoes, Textiles

I receive number of pallets per each order, which I need to rearrange following the rules below:
1. Pallets cannot have more than 16 cartons
2. Different commodity groups cannot be mixed together
3. Different country destinations cannot be mixed together
4. Different brands with same commodity groups can be mixed together in the rare occasions that it will save space
5. Cartons can be broken down, but not unpacked, in order to be added to other pallets with less cartons


123U- Brand X-Shoes- 1 pallet, 12 cartons
234D- Brand X-Shoes-2 pallets, 23 cartons
567U- Brand X-Shoes-1 pallet, 3 cartons
789D-Brand X-Shoes-2 pallets, 17 cartons
100U-Brand Y-Textiles-1 pallet, 5 cartons
102D-Brand Y-Textiles-1 pallet, 8 cartons

From the example above, I will arrange them as follow
1. Order number: 123U+567U will be together, because they match criteria and make up to 15 cartons
2. Order number: 234D+789D will be also together, as follow:
  • 234D- will stay alone with 16 cartons=23-16=7
  • 789D- will stay alone with 16 cartons=17-16=1
  • 234D+789D= 7+1=8
3. For the rest of the orders I will leave alone, because I have nothing to combine them with

In cases I have more orders with better combinations I always seek to optimize and get rid of pallets as much as possible.

So far, this task has been done manually in excel with just simple math without any formulas, due to its complexity.

However, if someone knows a smart way how this can be improved, I will super happy.

Many thanks in advance

-Dilyana
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Duplicate: https://www.mrexcel.com/forum/excel-questions/1025925-formula-automation-restructuring.html

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread. Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).
If you do not receive a response, you can "bump" it by replying to it again, though we advise you to wait 24 hours before doing and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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