Hi-
I have products listed below:
I also have multiple boxes that these products need to fit into:
I need create a function that uses the smallest box possible, where shipdim1 doesn not exceed dim1, shipdim2 does not exceed dim2, ect.. Ultimately, I need to find the [BOXID] value that is the best match.
For example, the StBestBox variable for PROD10 would be BOXID= BOX7
I'm assuming this can be achieved using Dlookup and Dmin?
Please help!!
I have products listed below:
Code:
item shipdim1 shipdim2 shipdim3
ITEM10 28 28 11
ITEM11 13 11 2
ITEM12 32 21 18
ITEM13 30 96 57
ITEM14 30 72 57
ITEM15 30 60 57
ITEM16 28 28 11
ITEM17 44 15 12
ITEM18 25 8 7
ITEM19 37 8 7
ITEM20 25 8 7
ITEM21 47 32 23
ITEM22 41 37 36
ITEM23 48 37 23
ITEM24 30 28 5
ITEM25 30 88 88
ITEM26 49 21 21
ITEM27 49 21 21
ITEM28 32 21 18
ITEM29 58 15 12
ITEM30 28 19 14
ITEM31 28 19 14
ITEM32 48 21 21
ITEM33 32 21 18
ITEM34 28 19 14
ITEM35 42 32 25
ITEM36 35 33 38
ITEM37 25 8 7
ITEM38 37 8 7
ITEM39 48 8 7
ITEM40 72 8 7
Code:
BOXID dim1 dim2 dim3
BOX1 16 13 3
BOX2 16 15 12
BOX3 25 8 7
BOX4 25 25 18
BOX5 28 13 12
BOX6 28 19 14
BOX7 28 28 11
BOX8 30 15 12
BOX9 30 28 5
BOX10 32 21 18
BOX11 37 8 7
BOX12 42 32 25
BOX13 44 15 12
BOX14 47 32 23
BOX15 48 36 18
BOX16 56 25 18
BOX17 58 15 12
I need create a function that uses the smallest box possible, where shipdim1 doesn not exceed dim1, shipdim2 does not exceed dim2, ect.. Ultimately, I need to find the [BOXID] value that is the best match.
For example, the StBestBox variable for PROD10 would be BOXID= BOX7
I'm assuming this can be achieved using Dlookup and Dmin?
Please help!!
Last edited: