Finding the combination of different columns in each cell to not get over the threshold

rosasellen12

New Member
Joined
Oct 20, 2022
Messages
9
Office Version
  1. 2019
  2. 2016
  3. 2013
Platform
  1. Windows
Suppose I want to compute the maximum probabilities that will not get under the 0.95 limit. The maximum possible combination is 0.95, multiplied in each column displayed in yellow. Therefore, is it possible to calculate it in excel such that each column will be multiplied by different combinations, then it would find the maximum allowable range that would not get under the limit. Also, the numbers on the left would be displayed that it is possible to see the designated numbers in each column that got the lowest number that would not get under the limit.

1670925997618.png

In this scenario, in order to get the lowest number, x1=5, x2=7 and x3=8 that the yellow cells are multipled to in order to get 0.951, which is not under 0.95.
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
This would be much easier in 365. Here it is with some array formulas that you have to ctrl enter them in.

MrExcelPlayground14.xlsx
ABCDEFGHIJKLMNOPQ
1x1x2x3912140.950.9501719375612
200.13530.04980.018315121110.000123 
310.4060.19910.09161120.000617 
420.67670.42320.23811130.001604 
530.85710.64720.43351140.002921 
640.94730.81530.62881150.004237 
750.98340.91610.78511160.00529 
860.99550.96650.88931170.005992 
970.99890.98810.94891180.006394 
1080.99980.99620.97861190.006594 
1190.99890.991911100.006683 
12100.99970.997211110.006719 
13110.99990.999111120.006732 
14120.999711130.006736 
15130.999911140.006737 
161210.000493 
171220.002468 
181230.006414 
191240.011678 
201250.016939 
211260.021149 
221270.023956 
231280.025562 
241290.026362 
2512100.02672 
2612110.026863 
2712120.026914 
2812130.02693 
2912140.026936 
301310.001048 
311320.005245 
321330.013633 
Sheet26
Cell Formulas
RangeFormula
G1:I1G1=COUNT(B2:B15)
M1M1=MIN(L2:L1513)
N1N1=MATCH(M1,L2:L1513,0)
O1:Q1O1=INDEX(G2#,$N1)-1
F2F2=G1*H1*I1
G2:G1513G2=INT((ROW(INDIRECT("1:"&F2))-1)/(H1*I1))+1
H2:H1513H2=MOD(INT((ROW(INDIRECT("1:"&F2))-1)/(I1)),H1)+1
I2:I1513I2=MOD(ROW(INDIRECT("1:"&F2))-1,I1)+1
K2:K32K2=INDEX($B$2:$B$10,G2)*INDEX($C$2:$C$13,H2)*INDEX($D$2:$D$15,I2)
L2:L32L2=IF(K2>=$L$1,K2,"")
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:D15Expression=ROW(B2)-2=O$1textNO
 
Upvote 0
This would be much easier in 365. Here it is with some array formulas that you have to ctrl enter them in.

MrExcelPlayground14.xlsx
ABCDEFGHIJKLMNOPQ
1x1x2x3912140.950.9501719375612
200.13530.04980.018315121110.000123 
310.4060.19910.09161120.000617 
420.67670.42320.23811130.001604 
530.85710.64720.43351140.002921 
640.94730.81530.62881150.004237 
750.98340.91610.78511160.00529 
860.99550.96650.88931170.005992 
970.99890.98810.94891180.006394 
1080.99980.99620.97861190.006594 
1190.99890.991911100.006683 
12100.99970.997211110.006719 
13110.99990.999111120.006732 
14120.999711130.006736 
15130.999911140.006737 
161210.000493 
171220.002468 
181230.006414 
191240.011678 
201250.016939 
211260.021149 
221270.023956 
231280.025562 
241290.026362 
2512100.02672 
2612110.026863 
2712120.026914 
2812130.02693 
2912140.026936 
301310.001048 
311320.005245 
321330.013633 
Sheet26
Cell Formulas
RangeFormula
G1:I1G1=COUNT(B2:B15)
M1M1=MIN(L2:L1513)
N1N1=MATCH(M1,L2:L1513,0)
O1:Q1O1=INDEX(G2#,$N1)-1
F2F2=G1*H1*I1
G2:G1513G2=INT((ROW(INDIRECT("1:"&F2))-1)/(H1*I1))+1
H2:H1513H2=MOD(INT((ROW(INDIRECT("1:"&F2))-1)/(I1)),H1)+1
I2:I1513I2=MOD(ROW(INDIRECT("1:"&F2))-1,I1)+1
K2:K32K2=INDEX($B$2:$B$10,G2)*INDEX($C$2:$C$13,H2)*INDEX($D$2:$D$15,I2)
L2:L32L2=IF(K2>=$L$1,K2,"")
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:D15Expression=ROW(B2)-2=O$1textNO
hmmm....seems like some of the functions are not possible to do in my current version of excel. Is it possible to convert some of these functions to put it in the older version of excel?


also, I think I gave the wrong wording about the solution; it should be that the lowest number possible (like x1=5, x2=7, and x3=8, the lowest, which gives the total of 20) instead of the lowest probability. So the goal is to minimize the sum of the left side of the number.


Thanks for the 365 version of the computation, but seems like I can't put it in my excel.
 
Upvote 0
I had left an array formula in O1:Q1... This should clean it up. Now it gives the lowest multiplicative total for sets that add to 20.

MrExcelPlayground14.xlsx
ABCDEFGHIJKLMNOPQ
1x1x2x3912140.0497411907013
200.13530.04980.018315121110.000123 
310.4060.19910.09161120.000617 
420.67670.42320.23811130.001604 
530.85710.64720.43351140.002921 
640.94730.81530.62881150.004237 
750.98340.91610.78511160.00529 
860.99550.96650.88931170.005992 
970.99890.98810.94891180.006394 
1080.99980.99620.97861190.006594 
1190.99890.991911100.006683 
12100.99970.997211110.006719 
13110.99990.999111120.006732 
14120.999711130.006736 
15130.999911140.006737 
161210.000493 
171220.002468 
181230.006414 
191240.011678 
201250.016939 
211260.021149 
221270.023956 
231280.025562 
241290.026362 
2512100.02672 
2612110.026863 
2712120.026914 
2812130.02693 
2912140.026936 
301310.001048 
311320.005245 
321330.013633 
331340.024822 
341350.036004 
351360.044954 
Sheet26
Cell Formulas
RangeFormula
G1:I1G1=COUNT(B2:B15)
M1M1=MIN(L2:L1513)
N1N1=MATCH(M1,L2:L1513,0)
O1:Q1O1=INDEX(G2:G1513,$N1)-1
F2F2=G1*H1*I1
G2:G1513G2=INT((ROW(INDIRECT("1:"&F2))-1)/(H1*I1))+1
H2:H1513H2=MOD(INT((ROW(INDIRECT("1:"&F2))-1)/(I1)),H1)+1
I2:I1513I2=MOD(ROW(INDIRECT("1:"&F2))-1,I1)+1
K2:K35K2=INDEX($B$2:$B$10,G2)*INDEX($C$2:$C$13,H2)*INDEX($D$2:$D$15,I2)
L2:L35L2=IF(SUM(G2:I2)-3=20,K2,"")
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:D15Expression=ROW(B2)-2=O$1textNO
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,892
Members
449,058
Latest member
Guy Boot

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