Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If I understand what you are trying to do, you may be better off using
the Solver tool. Arrange your data like this... COLA COLB COLC COLD Lengths Include Qty Total 31 1 0 0 35 1 0 0 39 1 0 0 41 1 0 0 45 1 0 0 57 1 0 0 55 1 0 0 59 1 0 0 Total from Roll 0 Roll Length 161 Variance 161 D2 = A2*B2*C2 and copy it down to D9 D10 = SUM(D2:D10) D11 = 161 (or whatever the row length is) D12 = D11 - D10 The include column is added to allow you to temporary include or not include certain lengths. If you want to include a length as a possibility, enter 1. Enter 0 to temporarily not include it. Entering a 1 does not guarantee it will be used but Solver will at least consider it. Call up Solver via Tools Solver. Set Target Cell = D12 Equal to MIN By Changing Cells C2:C9 Subject to the constraints C2:C9 = Int C2:C9 = 0 D12 = 0 Then Click solve and it will indicate the combination that minimizes waste. After that set, you can change the "Include" value to 0 for items in the original solution. Then run solver again and it will find the next best set. You could get fancier by adding a column that would indicate the quantity needed and an additional constraint so that solver wouldn't suggest 4 items of a length when you only need two. This should give you some ideas on getting started. - John www.JohnMichl.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date & Time | New Users to Excel | |||
Hyperlinks using R[1]C[1] and offset function in its cell referenc | Excel Worksheet Functions | |||
Conversion | Excel Worksheet Functions | |||
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. | Excel Worksheet Functions | |||
Find a Function to use accross different worksheets | Excel Worksheet Functions |