I'm attempting to return a value based on an INDEX, MATCH with an IF and just can't seem to get it nested properly so that it works...or maybe I should be using completely different logic.
The scenario:
Depending on how thick the metal is, we use different tools to cut or bend it. We are trying to put together a spreadsheet that will return the correct tool based on a formula because there are hundreds of thicknesses and hundreds of tools and these change regularly.
Our data is in two sheets in one workbook.
SHEET 1
[TABLE="class: grid, width: 200, align: center"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]THICKNESS[/TD]
[TD="align: center"]TYPE[/TD]
[TD="align: center"]TOOL[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"].05[/TD]
[TD="align: center"]S[/TD]
[TD="align: center"]??[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"].07[/TD]
[TD="align: center"]S[/TD]
[TD="align: center"]??[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"].09[/TD]
[TD="align: center"]FL[/TD]
[TD="align: center"]??[/TD]
[/TR]
</tbody>[/TABLE]
SHEET 2
[TABLE="class: grid, width: 200, align: center"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]VALUE1[/TD]
[TD="align: center"]TYPE[/TD]
[TD="align: center"]TOOL[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"].03[/TD]
[TD="align: center"]S[/TD]
[TD="align: center"]A[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"].06[/TD]
[TD="align: center"]FL[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"].08[/TD]
[TD="align: center"]S[/TD]
[TD="align: center"]C[/TD]
[/TR]
</tbody>[/TABLE]
I want excel to look at all of the data on sheet two (index A1:C4), make sure the types are the same (match 'sheet 1'!b2, 'sheet 2'!b2:b4,0) and then if the thickness is greater than the Value1 amount, return the tool name (match if 'sheet 1'!a2>sheet 2'a2:a4,c2:c4,0).
I can get each of these formulas to work on their own, but no matter how I nest them, I can't get them to work together.
Thanks!
The scenario:
Depending on how thick the metal is, we use different tools to cut or bend it. We are trying to put together a spreadsheet that will return the correct tool based on a formula because there are hundreds of thicknesses and hundreds of tools and these change regularly.
Our data is in two sheets in one workbook.
SHEET 1
[TABLE="class: grid, width: 200, align: center"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]THICKNESS[/TD]
[TD="align: center"]TYPE[/TD]
[TD="align: center"]TOOL[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"].05[/TD]
[TD="align: center"]S[/TD]
[TD="align: center"]??[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"].07[/TD]
[TD="align: center"]S[/TD]
[TD="align: center"]??[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"].09[/TD]
[TD="align: center"]FL[/TD]
[TD="align: center"]??[/TD]
[/TR]
</tbody>[/TABLE]
SHEET 2
[TABLE="class: grid, width: 200, align: center"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]VALUE1[/TD]
[TD="align: center"]TYPE[/TD]
[TD="align: center"]TOOL[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"].03[/TD]
[TD="align: center"]S[/TD]
[TD="align: center"]A[/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"].06[/TD]
[TD="align: center"]FL[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"].08[/TD]
[TD="align: center"]S[/TD]
[TD="align: center"]C[/TD]
[/TR]
</tbody>[/TABLE]
I want excel to look at all of the data on sheet two (index A1:C4), make sure the types are the same (match 'sheet 1'!b2, 'sheet 2'!b2:b4,0) and then if the thickness is greater than the Value1 amount, return the tool name (match if 'sheet 1'!a2>sheet 2'a2:a4,c2:c4,0).
I can get each of these formulas to work on their own, but no matter how I nest them, I can't get them to work together.
Thanks!