Sorting data with conditions

stuckhere

New Member
Joined
Jun 26, 2019
Messages
1
Hi,

Appologies if this is long winded but it seemed the easiest way to explain myself.

I need to create a solution to break the following table up into multiple, 2 part sections A&B.

The total quanity of each section must be divisable by 15. Neither section can exceed 45,270 and the sum of the two sections cannot exceed 75,450. The remainder can go in the final section however again cannot exceed 75450


A2515
B5030
C10060
D5030
E15090
F2515
G5030
H5030
I2515
J2515
K5030
L10060
M5030
N2515
O5030
P10060
Q5030
R15090
S2515
T5030
U5030
V2515
W5030
X2515

<tbody>
</tbody>

So based on this data it would look as follows:

Section 1- PART A
A2515
B5030
C10060
D5030
E15090
F2515
G5030

<tbody>
</tbody>

Sum of section 1 part A - 45270. Is divisable by 15- OK

SECTION 2 - PART B

H5030
I2515
J2515
K5030
L10060
M5030

<tbody>
</tbody>

Sum of section 2 part B - 30180. Is divisable by 15 -OK

Sum of Part A & Part B is 75450 - OK

Section 3 - PART A

N2515
O5030
P10060
Q5030
R15090
S2515
T5030

<tbody>
</tbody>

Sum of section 3 part A - 45270. Is divisable by 15- OK


Section 3 PART B

U5030
V2515
W5030

<tbody>
</tbody>
Sum of section 3 part B - 12575 - NOT DIVISABLE by 15 but as the remainder this is ok

Sum of Part A & Part B is 57845 - OK

Any help as to how to achive this is much appreciated.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,186,696
Messages
5,959,223
Members
438,408
Latest member
arjuntalgotra11

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
Top