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.

[TABLE="width: 296"]
<tbody>[TR]
[TD]Feature 1 Min|
[/TD]
[TD]Feature 1 Max|
[/TD]
[TD]Feature 2
[/TD]
[TD]|Value
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]0.1
[/TD]
[TD]A
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]0.1
[/TD]
[TD]0.2
[/TD]
[TD]A
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]0.2
[/TD]
[TD]0.3
[/TD]
[TD]A
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]0.1
[/TD]
[TD]B
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]0.1
[/TD]
[TD]0.2
[/TD]
[TD]B
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]0.2
[/TD]
[TD]0.3
[/TD]
[TD]B
[/TD]
[TD]6
[/TD]
[/TR]
</tbody>[/TABLE]

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

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
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

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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