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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,214,988
Messages
6,122,620
Members
449,092
Latest member
amyap

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