+ Reply to Thread
Results 1 to 8 of 8

Why cant i refer with INDEX and MATCH to a table header

  1. #1
    Registered User
    Join Date
    07-11-2016
    Location
    Finland
    MS-Off Ver
    2013
    Posts
    21

    Why cant i refer with INDEX and MATCH to a table header

    I have a Table with names in A column and in the header of the table is years,
    When i try to find a current value by using INDEX and MATCH i get #N/A

    If i change so that the yea is out side of the table the formula works fine.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: Why cant i refer with INDEX and MATCH to a table header

    It should work fine. But we can't see what YOU have done.

    Please attach a sample workbook. Make sure there is enough data to demonstrate your need. Make sure your desired results are shown, mock them up manually if necessary. Remember to remove ALL confidential information first!!!

    However, nothing on this Forum works quite as well as you might expect. The attachment icon doesn't work!! (Helpful, isn't it!!). Instead, just before you submit your post, click on GO ADVANCED (near the bottom) and then scroll down to Manage Attachments to open the upload window. The relevant instructions are at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Why cant i refer with INDEX and MATCH to a table header

    Follow the step for putting range ( Array for Index & Lookup array for Match)

    Whenever you will need to select the range in table you just need to go to the column and then press Control+Spence bar+Spence bar+Spence bar three time Spence bar. This will select entire column as a range and you will not bother for understanding range.

    If it helps you then its okay other wise please attached a sample workbook with expected result.


    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Registered User
    Join Date
    07-11-2016
    Location
    Finland
    MS-Off Ver
    2013
    Posts
    21

    Re: Why cant i refer with INDEX and MATCH to a table header

    Hi

    Sory i'm a bit new on this forum i forget to attach the file,

    Here is the problem

    As you can see it doesn't understand the table header
    Attached Files Attached Files

  5. #5
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Why cant i refer with INDEX and MATCH to a table header

    Try

    B14=INDEX(Table1[#All],MATCH([@Name],$A$4:$A$7,0),MATCH(B$12&"",Table1[#Headers],0))

  6. #6
    Registered User
    Join Date
    07-11-2016
    Location
    Finland
    MS-Off Ver
    2013
    Posts
    21

    Re: Why cant i refer with INDEX and MATCH to a table header

    thank you that worked

    By the way can you lock [@Name] some way as you lock wit F4 and you get the $$ signs
    or is there another way to lock the cell inside a table

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: Why cant i refer with INDEX and MATCH to a table header

    May be

    =INDEX(Table1[#All],MATCH([@Name],Table1[[#All],[Name]],0),MATCH(B$12&"",Table1[#Headers],0))

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

    Please add reputation by clicking star * left corner on poster solution which helps you.

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Why cant i refer with INDEX and MATCH to a table header

    Quote Originally Posted by esahakos View Post
    By the way can you lock [@Name] some way as you lock wit F4 and you get the $$ signs
    or is there another way to lock the cell inside a table
    Hi,

    If you wish to lock the column reference so as to be able to fill the formula across all columns, you may use
    =INDEX(Table1[#All],MATCH(Table2[@[Name]:[Name]],$A$4:$A$7,0),MATCH(B$12&"",Table1[#Headers],0))

    Alternatively, if you copy and paste the formula, or Ctl+Enter it into all columns at once, the column reference will not change.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Helped needed to index match row header, column header, and sheet
    By vw103604 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-15-2016, 12:37 PM
  2. [SOLVED] Index Match (row and header) that returns the first non-zero value
    By jmanp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-05-2016, 04:10 PM
  3. [SOLVED] Index match and header findings
    By SwissExcel in forum Excel General
    Replies: 1
    Last Post: 11-11-2015, 11:01 AM
  4. [SOLVED] Index + Match + IF - Function - Wonder why Excel Kept Refer to The Wrong Want
    By cychua in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 06-29-2014, 06:32 AM
  5. [SOLVED] Index Match row value and nth occurrence of header
    By dm@stams in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2013, 05:43 PM
  6. [SOLVED] VBA for creating Index-Match every 2 rows where INDEX refer to a different column per row
    By bisaya789 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-22-2012, 03:46 AM
  7. How to create formula index refer on refference table
    By poojiemilan in forum Excel General
    Replies: 1
    Last Post: 12-31-2011, 07:16 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1