Hi,
I am trying to pull a specific value from inside of a table utilizing an Index & Match formula, but I am encountering an error when I reference the table headers to identify the column number. I attempted to break down my formula to identify where the problem is occurring and found something that has me utterly confused.
Here is a sample of the table I am working with. The table name is TBL_Increases:
[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]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Industry
[/TD]
[TD]
2015
[/TD]
[TD]
2016
[/TD]
[TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Energy[/TD]
[TD="align: center"]0.5[/TD]
[TD="align: center"]2.5[/TD]
[TD="align: center"]3.0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Financial[/TD]
[TD="align: center"]3.0[/TD]
[TD="align: center"]2.9[/TD]
[TD="align: center"]3.1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Healthcare[/TD]
[TD="align: center"]3.0[/TD]
[TD="align: center"]3.0[/TD]
[TD="align: center"]3.4[/TD]
[/TR]
</tbody>[/TABLE]
Here are my reference values:
[TABLE="class: grid, width: 150, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Energy[/TD]
[TD="align: center"]2016[/TD]
[/TR]
</tbody>[/TABLE]
The formula I am using is:
=INDEX(TBL_Increases,MATCH(A1,TBL_Increases[Industry],0),MATCH(B1,TBL_Increases[#Headers],0))
The formula returns with an #N/A error.
After further examination, the second MATCH formula (for the column header number) is returning with the error. So I tried a simple =B1=C2 to see if the values are the same, but it came back as FALSE.
Can someone help me understand this?
I am trying to pull a specific value from inside of a table utilizing an Index & Match formula, but I am encountering an error when I reference the table headers to identify the column number. I attempted to break down my formula to identify where the problem is occurring and found something that has me utterly confused.
Here is a sample of the table I am working with. The table name is TBL_Increases:
[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]
[TD="align: center"]D[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Industry
[/TD]
[TD]
2015
[TD]
2016
[TD]
2017
[/TD][/TR]
[TR]
[TD]2[/TD]
[TD]Energy[/TD]
[TD="align: center"]0.5[/TD]
[TD="align: center"]2.5[/TD]
[TD="align: center"]3.0[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Financial[/TD]
[TD="align: center"]3.0[/TD]
[TD="align: center"]2.9[/TD]
[TD="align: center"]3.1[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]Healthcare[/TD]
[TD="align: center"]3.0[/TD]
[TD="align: center"]3.0[/TD]
[TD="align: center"]3.4[/TD]
[/TR]
</tbody>[/TABLE]
Here are my reference values:
[TABLE="class: grid, width: 150, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Energy[/TD]
[TD="align: center"]2016[/TD]
[/TR]
</tbody>[/TABLE]
The formula I am using is:
=INDEX(TBL_Increases,MATCH(A1,TBL_Increases[Industry],0),MATCH(B1,TBL_Increases[#Headers],0))
The formula returns with an #N/A error.
After further examination, the second MATCH formula (for the column header number) is returning with the error. So I tried a simple =B1=C2 to see if the values are the same, but it came back as FALSE.
Can someone help me understand this?