ifna index match with if

blicop

New Member
Joined
Aug 9, 2011
Messages
18
Office Version
  1. 365
Platform
  1. Windows
DataSet:
Factory CodeMin GaugeMax GaugePrice
CODE10.006500.008791.225
CODE20.008000.020001.215
CODE30.003000.003901.550
CODE40.008000.008791.450

<tbody>
</tbody>

<tbody>
</tbody>

Need help with an index-match formula with an if statement that if the gauge entered below is within the min-max of the factory codes matching row above, it should return the appropriate price. Also if it does match the factory code but falls outside the range, it should return "out of range".

Sample Output:
Factory CodeGaugePrice
CODE30.003801.550

<tbody>
</tbody>

Any help would be much appreciated
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Row\Col
A​
B​
C​
D​
E​
F​
G​
H​
1​
Factory CodeMin GaugeMax GaugePriceFactory CodeGaugePrice
2​
CODE1
0.0065
0.00879
1.225
CODE3
0.0038
1.55
3​
CODE2
0.008
0.02
1.215
4​
CODE3
0.003
0.0039
1.55
5​
CODE4
0.008
0.00879
1.45

In H2 control+shift+enter, not just enter, and copy down:

=IFERROR(INDEX($D$2:$D$5,MATCH($F2,IF($B$2:$B$5<=$G2,IF($C$2:$C$5>=$G2,$A$2:$A$5)),0)),"not available or out of range")
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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