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:
ABCD
1Industry


2015

2016
2017
2Energy0.52.53.0
3Financial3.02.93.1
4Healthcare3.03.03.4

<tbody>
</tbody>










Here are my reference values:
AB
1Energy2016

<tbody>
</tbody>





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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
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,216,211
Messages
6,129,528
Members
449,515
Latest member
lukaderanged

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