Formula assistance requested - Involves dimensions of items

Springer_30

New Member
Joined
Oct 14, 2009
Messages
28
Hi there

I have a problem whereby I need to ascertain whether a specific dimensioned item will fit into one of four fixed bin locations, and also determine which bin it fits best

For example an item has the following dims:

Length: 54
Width: 15
Height: 30

The four bin locations available are as follows:

SmallMediumLargeX-Large
25​
41,5​
41,5​
120​
39​
39​
77​
77​
50​
50​
50​
50​


How do I determine which bin the item will fit into best? I have tried various IF statements but with no real luck, I think I am missing something somehow

I have approximately 52000 items needing placement, those that are deemed too large to fit any of the bins will be oversized item
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Does it matter what orientation the item goes into the bin eg in your example would it go into the XL bin as that's the only one that is long enough or would it go into the Large bin as the width of the bin would accommodate the length of the item?
 
Upvote 0
Hi JimM

Orientation does not matter, so in this example it would fit into the Large bin as the width can accommodate the item's length
 
Upvote 0
OK, this isn't the prettiest but think it works

You'll need to adapt it to fit your data ranges but assuming the item sizes are in B1:B3 and the bin dimensions are in A9:D12 (A9 being the word small and D12 the number 50)

=IF(AND(LARGE(B1:B3,1)<=LARGE(A10:A12,1),LARGE(B1:B3,2)<=LARGE(A10:A12,2),LARGE(B1:B3,3)<=LARGE(A10:A12,3)),A9,IF(AND(LARGE(B1:B3,1)<=LARGE(B10:B12,1),LARGE(B1:B3,2)<=LARGE(B10:B12,2),LARGE(B1:B3,3)<=LARGE(B10:B12,3)),B9,IF(AND(LARGE(B1:B3,1)<=LARGE(C10:C12,1),LARGE(B1:B3,2)<=LARGE(C10:C12,2),LARGE(B1:B3,3)<=LARGE(C10:C12,3)),C9,IF(AND(LARGE(B1:B3,1)<=LARGE(D10:D12,1),LARGE(B1:B3,2)<=LARGE(D10:D12,2),LARGE(B1:B3,3)<=LARGE(D10:D12,3)),D9,"Oversize"))))
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,922
Members
449,094
Latest member
teemeren

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