Table for possible combinations

valleyaus

New Member
Joined
Jun 2, 2011
Messages
1
First time post.

I have been attempting to create code for a user form to show options of possible combinations of components to get to a user specified length.

I have components that come in 6 lengths (43,49,54,60,66) and I can use any combination or multiple of these lengths plus an single offcut length (0,3,5,8,11,16,19,25) to get within +/- 2 of the user specified length.

The user specified length can range from 43 through to 1000.

I have created tables of all possible combinations and have used lookup and match functions but I am thinking macro might reduce the size of this spreadsheet and enable further functionality such as choosing only 2 of the length variables to use instaed of looking at all 5.

Help on this code would be greatly appreciated.



Thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,224,524
Messages
6,179,308
Members
452,904
Latest member
CodeMasterX

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