Hi,
I have a column range of values. I need to sum the values in the 'best possible combination' to arrive at the target value (either equal to or less). By best possible I mean the sum result should be as close to target as possible.
Once the target is reached, the summing should start with remaining range of values to arrive at the target... an it goes on till entire range is exhausted. Basically, it is required to split the values in lot size of (say 25000). SO, if the sum of range of values is 100000, I need to make at east 4 lots. If the sum of range is 78000, still there will be 4 lots, the fourth lot having 3000.
The problem is the column range is huge and values are extremely variable. Appreciate some urgent help!
I have a column range of values. I need to sum the values in the 'best possible combination' to arrive at the target value (either equal to or less). By best possible I mean the sum result should be as close to target as possible.
Once the target is reached, the summing should start with remaining range of values to arrive at the target... an it goes on till entire range is exhausted. Basically, it is required to split the values in lot size of (say 25000). SO, if the sum of range of values is 100000, I need to make at east 4 lots. If the sum of range is 78000, still there will be 4 lots, the fourth lot having 3000.
The problem is the column range is huge and values are extremely variable. Appreciate some urgent help!