creating BINs by altering variables

DBP1968

New Member
Joined
Jul 18, 2019
Messages
12
Seems simple enough but i have been unscuccesful

DATA:
columns
NodeName, Weight
A1, 800
A2, 800.1
A3,820.9
A4,815.3
A5,801.6
A6,801.6
A7,815.3

you get the idea. very simple data, except i have thousands.
I've tried creating histograms and that works fairly well but you can't really see the forumlas or how its doing it much less alter it very much.

Normally these items are physically sorted in the real world by a human that is pretty much guessing what works best. when you look at the bulk lot you'll notice standard distributions with really light items on end and really heavy on the other. the idea is to group them up in BIN so to best utilize the items within a certain tolerance.
To view how my BIN quantiies change I'd like to be able to plug in a variable in a cell that represents the desired tolerance. Say +/- .7 so the magic of excel *should* go look at the entire set of items and tell me how to best group them up in BINS based on the min/max of a particular BIN being with the MEAN/MODE of +/- .7grams Some times i need to alter than to say .5 or go up to 1.5 in either case it will result in less waste at either end and create appropriate sized BINs.

Hopefully that makes sense. I could really use them help.

Thank

DP
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
I think you need to explain some more.

You want to arrange thousands of items in lots of ?? items each so that ???
 
Upvote 0
Yes arrange into autopopulated columns or bins or lists based on me plugging in a variable of .5 or 1.5 etc

All those items have a weight and I need excel to figure out the most efficient way to group by the variance allowed in my examples above variance would be .5. So the formulas should determine from the long list of items how to best group them it may be in 3 bins or it may be in 10 bins there is also an outliers small and large bin because some items are so small or large there is not enough of them to make up a min size bin of say 30 units
 
Upvote 0
Just sort by weight and start a new bin when the next item would cause the current item to exceed the threshold (max - min, average, whatever).
 
Upvote 0
Here's my suggestion:

A​
B​
C​
D​
1​
Tol
2​
±2.5​
3​
NodeName
Weight
Bin
4​
A83
788.6​
1​
C4: Input
5​
A88
790.7​
1​
C5: =C4 + (B5 - INDEX(B$3:B4, MATCH(C4, C$3:C4, 0)) > 2 * C$2)
6​
A96
791.6​
1​
7​
A91
792.0​
1​
8​
A64
792.2​
1​
9​
A24
792.3​
1​
10​
A27
792.9​
1​
11​
A9
793.4​
1​
12​
A85
793.6​
1​
13​
A55
793.8​
2​
14​
A44
793.8​
2​
15​
A19
794.1​
2​
16​
A97
794.7​
2​
17​
A92
794.8​
2​
18​
A41
795.1​
2​
19​
A23
795.3​
2​
20​
A79
795.6​
2​
21​
A32
795.9​
2​
22​
A94
796.0​
2​
23​
A6
796.0​
2​
24​
A76
796.1​
2​
25​
A14
796.2​
2​
26​
A5
796.4​
2​
27​
A60
796.5​
2​
28​
A35
796.5​
2​
29​
A72
796.6​
2​
30​
A73
796.7​
2​
31​
A71
797.0​
2​
32​
A48
797.2​
2​
33​
A100
797.7​
2​
34​
A4
797.8​
2​
35​
A67
797.8​
2​
36​
A28
797.8​
2​
37​
A70
797.9​
2​
38​
A30
798.0​
2​
39​
A38
798.0​
2​
40​
A57
798.1​
2​
41​
A13
798.7​
2​
42​
A36
798.8​
2​
43​
A7
798.8​
2​
44​
A63
799.0​
3​
45​
A51
799.1​
3​
46​
A56
799.4​
3​
47​
A21
799.5​
3​
48​
A78
799.6​
3​
49​
A29
799.8​
3​
50​
A52
799.9​
3​
51​
A33
800.1​
3​
52​
A65
800.1​
3​
53​
A89
800.1​
3​
54​
A90
800.3​
3​
55​
A69
800.5​
3​
56​
A53
800.5​
3​
57​
A54
801.0​
3​
58​
A37
801.0​
3​
59​
A1
801.2​
3​
60​
A49
801.3​
3​
61​
A47
801.5​
3​
62​
A26
801.6​
3​
63​
A20
801.6​
3​
64​
A10
801.8​
3​
65​
A3
802.0​
3​
66​
A17
802.2​
3​
67​
A66
802.2​
3​
68​
A93
802.5​
3​
69​
A15
802.7​
3​
70​
A86
802.8​
3​
71​
A58
803.0​
3​
72​
A81
803.2​
3​
73​
A99
803.2​
3​
74​
A50
803.3​
3​
75​
A43
803.5​
3​
76​
A45
803.7​
3​
77​
A22
803.7​
3​
78​
A40
804.0​
3​
79​
A74
804.4​
4​
80​
A80
804.5​
4​
81​
A39
804.7​
4​
82​
A61
804.8​
4​
83​
A34
805.0​
4​
84​
A95
805.0​
4​
85​
A84
805.1​
4​
86​
A8
805.3​
4​
87​
A98
805.4​
4​
88​
A77
806.3​
4​
89​
A75
806.6​
4​
90​
A46
806.6​
4​
91​
A2
806.7​
4​
92​
A42
806.9​
4​
93​
A12
807.6​
4​
94​
A11
807.8​
4​
95​
A68
808.1​
4​
96​
A87
808.8​
4​
97​
A31
810.3​
5​
98​
A59
810.6​
5​
99​
A82
810.7​
5​
100​
A62
811.7​
5​
101​
A16
813.4​
5​
102​
A25
814.9​
5​
103​
A18
815.2​
5​
 
Upvote 0
First, thank you for the responses. well done sir

now i don't know how to present the +/- 2.5 in a cell just get errors or a -negative and so all the C column is just a zero
 
Upvote 0
The number in the cell is 2.5. It's just custom-formatted as ±0.0 for cosmetics.
 
Upvote 0
Still not working??? just get all ZERO's straight down COLUMN

Here's my suggestion:

A​
B​
C​
D​
1​
Tol
2​
±2.5​
3​
NodeName
Weight
Bin
4​
A83
788.6​
1​
C4: Input
5​
A88
790.7​
1​
C5: =C4 + (B5 - INDEX(B$3:B4, MATCH(C4, C$3:C4, 0)) > 2 * C$2)
6​
A96
791.6​
1​
7​
A91
792.0​
1​
8​
A64
792.2​
1​
9​
A24
792.3​
1​
10​
A27
792.9​
1​
11​
A9
793.4​
1​
12​
A85
793.6​
1​
13​
A55
793.8​
2​
14​
A44
793.8​
2​
15​
A19
794.1​
2​
16​
A97
794.7​
2​
17​
A92
794.8​
2​
18​
A41
795.1​
2​
19​
A23
795.3​
2​
20​
A79
795.6​
2​
21​
A32
795.9​
2​
22​
A94
796.0​
2​
23​
A6
796.0​
2​
24​
A76
796.1​
2​
25​
A14
796.2​
2​
26​
A5
796.4​
2​
27​
A60
796.5​
2​
28​
A35
796.5​
2​
29​
A72
796.6​
2​
30​
A73
796.7​
2​
31​
A71
797.0​
2​
32​
A48
797.2​
2​
33​
A100
797.7​
2​
34​
A4
797.8​
2​
35​
A67
797.8​
2​
36​
A28
797.8​
2​
37​
A70
797.9​
2​
38​
A30
798.0​
2​
39​
A38
798.0​
2​
40​
A57
798.1​
2​
41​
A13
798.7​
2​
42​
A36
798.8​
2​
43​
A7
798.8​
2​
44​
A63
799.0​
3​
45​
A51
799.1​
3​
46​
A56
799.4​
3​
47​
A21
799.5​
3​
48​
A78
799.6​
3​
49​
A29
799.8​
3​
50​
A52
799.9​
3​
51​
A33
800.1​
3​
52​
A65
800.1​
3​
53​
A89
800.1​
3​
54​
A90
800.3​
3​
55​
A69
800.5​
3​
56​
A53
800.5​
3​
57​
A54
801.0​
3​
58​
A37
801.0​
3​
59​
A1
801.2​
3​
60​
A49
801.3​
3​
61​
A47
801.5​
3​
62​
A26
801.6​
3​
63​
A20
801.6​
3​
64​
A10
801.8​
3​
65​
A3
802.0​
3​
66​
A17
802.2​
3​
67​
A66
802.2​
3​
68​
A93
802.5​
3​
69​
A15
802.7​
3​
70​
A86
802.8​
3​
71​
A58
803.0​
3​
72​
A81
803.2​
3​
73​
A99
803.2​
3​
74​
A50
803.3​
3​
75​
A43
803.5​
3​
76​
A45
803.7​
3​
77​
A22
803.7​
3​
78​
A40
804.0​
3​
79​
A74
804.4​
4​
80​
A80
804.5​
4​
81​
A39
804.7​
4​
82​
A61
804.8​
4​
83​
A34
805.0​
4​
84​
A95
805.0​
4​
85​
A84
805.1​
4​
86​
A8
805.3​
4​
87​
A98
805.4​
4​
88​
A77
806.3​
4​
89​
A75
806.6​
4​
90​
A46
806.6​
4​
91​
A2
806.7​
4​
92​
A42
806.9​
4​
93​
A12
807.6​
4​
94​
A11
807.8​
4​
95​
A68
808.1​
4​
96​
A87
808.8​
4​
97​
A31
810.3​
5​
98​
A59
810.6​
5​
99​
A82
810.7​
5​
100​
A62
811.7​
5​
101​
A16
813.4​
5​
102​
A25
814.9​
5​
103​
A18
815.2​
5​

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,303
Members
449,078
Latest member
nonnakkong

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