Splitting Orders to Reduce Average Weight? Division of Weight and Allocating QTY

razzandy

Active Member
Joined
Jun 26, 2002
Messages
390
Office Version
  1. 2007
Platform
  1. Windows
Hi Guys

So, occasionally I need to split an order into two or more to reduce and average weight and I have some VBA code which simply divides the Total Weight by the amount I want to divide the order into. So for instance I have an order with a weight of 6480g and the quantity purchased is 5. If I wanted to split this order into 3 my system simply divides 6480 by 3 but the problem is the packed items would be 2, 2 and a 1 so I need a way to first calculate the QTYs per order then recalculate the weight. If I simply divide the weight by the split amount l would have to split a product into 1.6 recurring (Not Possible, Customer wants a full product))! o_O So I am TRYING, 'very TRYING', to come up with either a formula or (preferred VBA) to come up with logic which will work out what the QTYs divided by 3 would be 2, 2 and 1 at this point I can then easily recalculate the weight per order line. Hope this makes sense?

Here is a screenshot before the split:

1612875429274.png


Here is a Screenshot after I have split an order in 3:

1612875373041.png


Thanks in advance guys (y)
 

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.
Sorry Guys I missed the below!

I want the end result to look like this:

1612876618056.png
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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