Returning a value from a list of static with two parameters, one of which uses a range

booms

Board Regular
Joined
Dec 2, 2010
Messages
60
Hi,

I’m trying to return a value from a large static table that includes a number of different parameters.

Feature 1 Min|
Feature 1 Max|
Feature 2
|Value
0.1
A
1
0.1
0.2
A
2
0.2
0.3
A
3
0.1
B
4
0.1
0.2
B
5
0.2
0.3
B
6

<tbody>
</tbody>

Here’s an example of the static table.

The data I’m trying to work with will give me a value for Feature 1 and for Feature 2. The value for feature 1 will lie in the range as specified in the static table, whereas Feature 2 doesn’t have that complexity.

e.g. For Feature 1 = 0.23 and Feature 2 = B I want to return ‘6’.

Any idea how to pick this up using a formula?
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
If there's only going to be one match then perhaps:


Book1
ABCDEFG
1Feature 1 MinFeature 1 MaxFeature 2ValueFeature 10.23
200.1A1Feature 2B
30.10.2A2Result6
40.20.3A3
500.1B4
60.10.2B5
70.20.3B6
Sheet1
Cell Formulas
RangeFormula
G3=INDEX($D1:$D$7,SUMPRODUCT(($A$1:$A$7<=$G$1)*($B$1:$B$7>$G$1)*($C$1:$C$7=$G$2)*ROW($D$1:$D$7)))


WBD
 
Upvote 0
In G3 control+shif enter, not just enter:

=VLOOKUP(G1,CHOOSE({1,2},IF($C$2:$C$7=G2,$A$2:$A$7),$D$2:$D$7),2,1)
 
Upvote 0

Forum statistics

Threads
1,215,388
Messages
6,124,658
Members
449,177
Latest member
Sousanna Aristiadou

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