is it just this?
=ROUNDDOWN(shelfh/boxh,0)*ROUNDDOWN(shelfw/boxw,0)*ROUNDDOWN(shelfl/boxl,0)
where the "shelfh" etc are named ranges for the shelf height width and length and box height width and length.
the formula would be slightly wrong if it is more efficient to stack some other ways up, or all on their sides.
possibly it could also be
=max(ROUNDDOWN(shelfw/boxh,0)*ROUNDDOWN(shelfh/boxw,0)*ROUNDDOWN(shelfl/boxl,0),ROUNDDOWN(shelfh/boxh,0)*ROUNDDOWN(shelfw/boxw,0)*ROUNDDOWN(shelfl/boxl,0))
I guess you don't want them stacked with the bottom on the side...
Bookmarks