Multiple user input value reference

Hapakaya

New Member
Joined
Jul 13, 2021
Messages
14
Office Version
  1. 365
Platform
  1. Windows
I have two user input data points for MAX and MIN, I need to use these values and reference the table to select a box size that is most appropriate. The Max value needs to selecta box size the has a value in the table closest to the optimal design of 0.1", but I also need to make sure the box min is less than or equal to the user input min. There are multiple box sizes that could work for different inputs, but I want it to prioritize the optimal design range of 0.1"


I cannot use the mini sheets being on a work computer so heres are some pictures: "Front Page". For reference MAX COOLING is cell C18, and UNOCC MIN is cell E18.
Front Page.png


The reference tables are on another sheet "Look Up Tables"
Look Up Tables.png


In this example the best box size should be 12 because it prioritized the optimal design range, but 10 could technical work.

I just need to reference the max "MAX COOLING" and min "UNOCC MIN" and reference the AVT6000 in the 'Look Up Tables' and return the value in column B that the function determines to be the best box size.

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Can you explain step by step the process that leads you to arrive at the answer 12 (or 10)? What's the lookup sequence to get that value?
 
Upvote 0
I may have worked it out anyway. Is this what you're after? You'll have to pretend the two parts are on separate sheets for the purpose of this demonstration.

Book1
ABCDEFGHIJKLMNOPQ
1Front pageLookup tablesOptimal design range
2MarkMax coolingUnocc MinBox sizeBox sizeBox minBox max
3SAV-112702001260630143174206230254315
480880367447528589650800
5101012060673386095810561300
6121218084010161192132614611790
71414250136416241884207922752750
812x1818260143717612086234125963200
912x2424350181222132614292532374000
1012x3636520287535234172468151916400
1112x4848700362544265228585064738000
Sheet1
Cell Formulas
RangeFormula
F3F3=LET(boxsize,$J$3:$J$11, boxmin,VALUE(XLOOKUP(E$3,$K$3:$K$11,boxsize,,-1)), boxopt,MAX(VALUE(BYCOL($L$3:$Q$11,LAMBDA(optrange,XLOOKUP(C$3,optrange,boxsize,,-1))))), MIN(boxmin,boxopt))
 
Upvote 0
Can you explain step by step the process that leads you to arrive at the answer 12 (or 10)? What's the lookup sequence to get that value?
Thanks for the response, first I would take the unocc min user input and then check to see which box size would satisfy this input and I would start from box size 6 and go up until I reach the first box that works. so in the example any box smaller than 14 would technically work, which is when I would then check if my max cooling is lower than the box max. So the first box to satisfy the min and max would be size 10, but if i check the next box size up I will find that the max cooling falls closer to the optimal design of 0.1"

Essentially just does the max and min fall within the range of the box, and which max cooling is closer to the optimal design of 0.1"
 
Upvote 0
I may have worked it out anyway. Is this what you're after? You'll have to pretend the two parts are on separate sheets for the purpose of this demonstration.

Book1
ABCDEFGHIJKLMNOPQ
1Front pageLookup tablesOptimal design range
2MarkMax coolingUnocc MinBox sizeBox sizeBox minBox max
3SAV-112702001260630143174206230254315
480880367447528589650800
5101012060673386095810561300
6121218084010161192132614611790
71414250136416241884207922752750
812x1818260143717612086234125963200
912x2424350181222132614292532374000
1012x3636520287535234172468151916400
1112x4848700362544265228585064738000
Sheet1
Cell Formulas
RangeFormula
F3F3=LET(boxsize,$J$3:$J$11, boxmin,VALUE(XLOOKUP(E$3,$K$3:$K$11,boxsize,,-1)), boxopt,MAX(VALUE(BYCOL($L$3:$Q$11,LAMBDA(optrange,XLOOKUP(C$3,optrange,boxsize,,-1))))), MIN(boxmin,boxopt))
This works, except when I try and input lower values.
For example max/min of 200/200 returns error, and max/min of 345/345 returns box size 6 but those values are out of range of the defined box limits.
 
Upvote 0
Thanks for the response, first I would take the unocc min user input and then check to see which box size would satisfy this input and I would start from box size 6 and go up until I reach the first box that works. so in the example any box smaller than 14 would technically work, which is when I would then check if my max cooling is lower than the box max. So the first box to satisfy the min and max would be size 10, but if i check the next box size up I will find that the max cooling falls closer to the optimal design of 0.1"

Essentially just does the max and min fall within the range of the box, and which max cooling is closer to the optimal design of 0.1"
Do I understand from this that you're only interested in the matrix between the box min and box max (columns L-P in my example) you are only interested in matching to column L and the other columns can be ignored?
 
Upvote 0
Do I understand from this that you're only interested in the matrix between the box min and box max (columns L-P in my example) you are only interested in matching to column L and the other columns can be ignored?
Correct, I want to chose a box that has a max value as close to whats in column L, so long as the max and min fall within the range of the box
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,150
Members
453,021
Latest member
Justyna P

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