Most optimal combination

Arek92

New Member
Joined
Jan 29, 2021
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a set of unique items that I have to assign to specified locations. The number of locations is determined by the sum of the items' values, rounded up to the closest integer. See for an example below:

ItemValue
A
0,11​
B
0,22​
C
0,44​
D
0,44​
E
0,67​
F
0,33​
G
0,25​
H
0,5​
I
0,5​
J
0,33​
K
0,22​
L
0,67​
M
0,11​
Sum
4,79​

In the above example my sum equals to 4,79, which means I need to distribute to 5 locations. I want to find the best combination that will allow me to distribute the highest amount of items to one location. In other words, a combination of items, the sum of values of which is closest but not greater than 1.

Any suggestions would be greatly appreciated.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,217,440
Messages
6,136,640
Members
450,022
Latest member
Joel1122331

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