Table Column Header Value Identity Crisis?

Josh123

New Member
Joined
Dec 11, 2013
Messages
18
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]
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?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Check to see if one may be a number and the other text or if both are text check for leading or trailing spaces.
 
Upvote 0
Please open a new spreadsheet and test this with me:

Test #1 : Number Match

  1. Type "1" in cell A1
  2. Type "1" in cell C1
  3. Run the formula: =A1=C1 (the results should be "TRUE")
  4. Click on cell C1 and insert a table (check the box that stats "My table has headers")
  5. Run the formula: =A1=C1 (the result says "FALSE")

Test #2 : Letter Match
  1. Type "X" in cell A1
  2. Type "X" in cell C1
  3. Run the formula: =A1=C1 (the results should be "TRUE")
  4. Click on cell C1 and insert a table (check the box that stats "My table has headers")
  5. Run the formula: =A1=C1 (the result says "TRUE")

Test #3 : Letter,Number Match
  1. Type "X1" in cell A1
  2. Type "X1" in cell C1
  3. Run the formula: =A1=C1 (the results should be "TRUE")
  4. Click on cell C1 and insert a table (check the box that stats "My table has headers")
  5. Run the formula: =A1=C1 (the result says "TRUE")

Test #4 : Number,Letter Match
  1. Type "1X" in cell A1
  2. Type "1X" in cell C1
  3. Run the formula: =A1=C1 (the results should be "TRUE")
  4. Click on cell C1 and insert a table (check the box that stats "My table has headers")
  5. Run the formula: =A1=C1 (the result says "TRUE")

Why can't we establishes matches using numbers exclusively?
 
Upvote 0
AhoyNC,

Thank you so much for providing this link - this is exactly what I needed to know.
The only other alteration I had to do was Ctrl+Shift+Enter.

Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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