Sheet Name: 'TOOLS!'
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Opening[/TD]
[TD]Max Bend[/TD]
[TD]Tool[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]0.520[/TD]
[TD]150[/TD]
[TD]ABC[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1.125[/TD]
[TD]105[/TD]
[TD]DEF[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2.000[/TD]
[TD]95[/TD]
[TD]GHI[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]3.000[/TD]
[TD]100[/TD]
[TD]JKL[/TD]
[/TR]
</tbody>[/TABLE]
Sheet Name: 'CHART!'
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Material[/TD]
[TD]Pref Opening[/TD]
[TD]Use Tool[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10GA[/TD]
[TD]1.125[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8GA[/TD]
[TD]2.000[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
There are several other sheets and formulas in play, but the goal for this particular cell (Chart!C2) is to return the appropriate Tool based on multiple IF criteria.
The result for CHART!C2 should be
If the Max Bend of the Tool is greater than 90 AND
If the Max Bend of the Tool is less than 106 AND
If the Opening of the Tool is greater than or equal to the Preferred Opening
Return the Tool that has the closest Opening to the Preferred Opening
The formula I started with is shown below but it is returning a result of Tools!C1, “TOOL”, which is obviously not correct and does not ensure that I am getting the closest Opening match…
{=INDEX(Tools!$A$1:$C$5,IF(AND(Tools!$B$1:$B$5>90,Tools!$B$1:$B$5<106,Tools!$A$1:$A$5>$B2),MATCH($B2,Tools$A$1:$A$5,0),0))}
Any help is more than greatly appreciated since I have been stumped by this for over a week.
Thank you!
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Opening[/TD]
[TD]Max Bend[/TD]
[TD]Tool[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]0.520[/TD]
[TD]150[/TD]
[TD]ABC[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]1.125[/TD]
[TD]105[/TD]
[TD]DEF[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]2.000[/TD]
[TD]95[/TD]
[TD]GHI[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]3.000[/TD]
[TD]100[/TD]
[TD]JKL[/TD]
[/TR]
</tbody>[/TABLE]
Sheet Name: 'CHART!'
[TABLE="class: grid, width: 300, align: left"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Material[/TD]
[TD]Pref Opening[/TD]
[TD]Use Tool[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]10GA[/TD]
[TD]1.125[/TD]
[TD]???[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]8GA[/TD]
[TD]2.000[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
There are several other sheets and formulas in play, but the goal for this particular cell (Chart!C2) is to return the appropriate Tool based on multiple IF criteria.
The result for CHART!C2 should be
If the Max Bend of the Tool is greater than 90 AND
If the Max Bend of the Tool is less than 106 AND
If the Opening of the Tool is greater than or equal to the Preferred Opening
Return the Tool that has the closest Opening to the Preferred Opening
The formula I started with is shown below but it is returning a result of Tools!C1, “TOOL”, which is obviously not correct and does not ensure that I am getting the closest Opening match…
{=INDEX(Tools!$A$1:$C$5,IF(AND(Tools!$B$1:$B$5>90,Tools!$B$1:$B$5<106,Tools!$A$1:$A$5>$B2),MATCH($B2,Tools$A$1:$A$5,0),0))}
Any help is more than greatly appreciated since I have been stumped by this for over a week.
Thank you!
Last edited: