Sort the range of values based on the maximum sum or limit value

Amar313

New Member
Joined
May 30, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Dear people,

I have a question, hope you can help me. My question relates to sorting the production order based on its daily production capacity.

1653940563235.png


As you can see in production column, i want to make a condition where If the production exceeds the maximum daily production capacity available in a day, allocate the portion of the production that does not fit into Day 1 into Day 2. I set the daily production capacity = 1200 pcs/day. Therefore the output result should look like the production order where the total production (pcs) in a day should not equal more than daily production capacity.

I prefer VBA code, but if otherwise possible than I hope you can help me.

I would really appreciate any guidance or even a start! Let me know if i should provide any further clarity.
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Forum statistics

Threads
1,215,514
Messages
6,125,267
Members
449,219
Latest member
daynle

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