Provide options based on combination of existing data

chandan2110

New Member
Joined
Dec 26, 2013
Messages
2
Hi..
I have a table with entries like (Example from table, real table is very large) -

[TABLE="width: 500"]
<tbody>[TR]
[TD]Length[/TD]
[TD]Width[/TD]
[TD]No[/TD]
[/TR]
[TR]
[TD]300[/TD]
[TD]300[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]600[/TD]
[TD]200[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]900[/TD]
[TD]600[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]250[/TD]
[TD]450[/TD]
[TD]25[/TD]
[/TR]
</tbody>[/TABLE]

I want to extract information where if I give a number for length and width the query can tell me all possible combinations. Eg. User enters Length = 1800 and Width = 600. The result should be -

[TABLE="width: 500"]
<tbody>[TR]
[TD]Option[/TD]
[TD]Length[/TD]
[TD]Width[/TD]
[TD]No needed to form [/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]900[/TD]
[TD]600[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]300[/TD]
[TD]300[/TD]
[TD]12[/TD]
[/TR]
[TR]
[TD]etc....need all possible combination[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Will appreciate the help.
 
It would probably help if you would explain in more detail how to are calculating the results.

TIP: Keep in mind that we no nothing about what you are trying to do or the work you do.
 
Upvote 0
It would probably help if you would explain in more detail how to are calculating the results.

TIP: Keep in mind that we no nothing about what you are trying to do or the work you do.


These length and width pieces are basically wooden flat rectangular pieces and have to be combined together to form a bigger piece. The dimension of the bigger pieces always varies and we have to somehow manage to form the bigger piece from available smaller pieces.

I hope this brings things to perspective.
Thanks
 
Upvote 0
I am still clueless about what you are trying to calculate. I still have no idea how you calculated thed two option in your example.

Programming is the art of taking all the exact steps you would perform when doing it manually on paper and translating the steps into instructions the computer can perform.
 
Last edited:
Upvote 0
Maybe ...

[Table="width:, class:grid"][tr][td] [/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][td]
D​
[/td][td]
E​
[/td][td]
F​
[/td][/tr]
[tr][td]
1​
[/td][td][/td][td][/td][td]
L​
[/td][td]
1,800​
[/td][td][/td][td][/td][/tr]

[tr][td]
2​
[/td][td][/td][td][/td][td]
W​
[/td][td]
600​
[/td][td][/td][td][/td][/tr]

[tr][td]
3​
[/td][td]
L​
[/td][td]
W​
[/td][td]
Qty​
[/td][td]
Needed​
[/td][td]
Waste​
[/td][td]
[/td][/tr]

[tr][td]
4​
[/td][td]
300​
[/td][td]
300​
[/td][td]
50​
[/td][td]
12​
[/td][td]
0%​
[/td][td]D4: =CEILING(D$1/A4,1) * CEILING(D$2/B4,1)[/td][/tr]

[tr][td]
5​
[/td][td]
600​
[/td][td]
200​
[/td][td]
30​
[/td][td]
9​
[/td][td]
0%​
[/td][td]E4: =1-D$1*D$2 / (A4*B4*D4)[/td][/tr]

[tr][td]
6​
[/td][td]
900​
[/td][td]
600​
[/td][td]
10​
[/td][td]
2​
[/td][td]
0%​
[/td][td][/td][/tr]

[tr][td]
7​
[/td][td]
250​
[/td][td]
450​
[/td][td]
25​
[/td][td]
16​
[/td][td]
40%​
[/td][td][/td][/tr]
[/table]
 
Upvote 0

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