DataSet:
[TABLE="width: 341"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 341"]
<tbody>[TR]
[TD]Factory Code[/TD]
[TD]Min Gauge[/TD]
[TD]Max Gauge[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]CODE1[/TD]
[TD="align: right"]0.00650[/TD]
[TD="align: right"]0.00879[/TD]
[TD="align: right"]1.225[/TD]
[/TR]
[TR]
[TD]CODE2[/TD]
[TD="align: right"]0.00800[/TD]
[TD="align: right"]0.02000[/TD]
[TD="align: right"]1.215[/TD]
[/TR]
[TR]
[TD]CODE3[/TD]
[TD="align: right"]0.00300[/TD]
[TD="align: right"]0.00390[/TD]
[TD="align: right"]1.550[/TD]
[/TR]
[TR]
[TD]CODE4[/TD]
[TD="align: right"]0.00800[/TD]
[TD="align: right"]0.00879[/TD]
[TD="align: right"]1.450[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
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:
[TABLE="class: grid, width: 287"]
<tbody>[TR]
[TD]Factory Code[/TD]
[TD]Gauge[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]CODE3[/TD]
[TD="align: right"]0.00380[/TD]
[TD="align: right"]1.550[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be much appreciated
[TABLE="width: 341"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 341"]
<tbody>[TR]
[TD]Factory Code[/TD]
[TD]Min Gauge[/TD]
[TD]Max Gauge[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]CODE1[/TD]
[TD="align: right"]0.00650[/TD]
[TD="align: right"]0.00879[/TD]
[TD="align: right"]1.225[/TD]
[/TR]
[TR]
[TD]CODE2[/TD]
[TD="align: right"]0.00800[/TD]
[TD="align: right"]0.02000[/TD]
[TD="align: right"]1.215[/TD]
[/TR]
[TR]
[TD]CODE3[/TD]
[TD="align: right"]0.00300[/TD]
[TD="align: right"]0.00390[/TD]
[TD="align: right"]1.550[/TD]
[/TR]
[TR]
[TD]CODE4[/TD]
[TD="align: right"]0.00800[/TD]
[TD="align: right"]0.00879[/TD]
[TD="align: right"]1.450[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
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:
[TABLE="class: grid, width: 287"]
<tbody>[TR]
[TD]Factory Code[/TD]
[TD]Gauge[/TD]
[TD]Price[/TD]
[/TR]
[TR]
[TD]CODE3[/TD]
[TD="align: right"]0.00380[/TD]
[TD="align: right"]1.550[/TD]
[/TR]
</tbody>[/TABLE]
Any help would be much appreciated