+ Reply to Thread
Results 1 to 11 of 11

Index/Match Formula Reference Error

  1. #1
    Registered User
    Join Date
    11-17-2016
    Location
    New York, NY
    MS-Off Ver
    2016
    Posts
    3

    Index/Match Formula Reference Error

    Hi -

    I keep getting a reference error with my index match formula.

    I have a summary page that includes a date and a name "xx", which I'm trying to match to my data tab. The "xx" is listed in a column and the date is listed in the row.

    =INDEX(Sheet2!B3:G3,MATCH(Sheet1!B1,Sheet2!A2:A23,0),MATCH(Sheet1!A3,Sheet2!A1:G1,0))

    THX!
    Attached Files Attached Files
    Last edited by MJ06; 11-17-2016 at 04:15 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Index/Match Formula Reference Error

    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.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    11-17-2016
    Location
    New York, NY
    MS-Off Ver
    2016
    Posts
    3

    Re: Index/Match Formula Reference Error

    Thanks! Posted an attachment.

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Index/Match Formula Reference Error

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match Formula Reference Error

    Quote Originally Posted by MJ06 View Post
    =INDEX(Sheet2!B3:G3,MATCH(Sheet1!B1,Sheet2!A2:A23,0),MATCH(Sheet1!A3,Sheet2!A1:G1,0))
    Your INDEX range needs to cover both the row and column ranges, so it needs to be at least...
    =INDEX(Sheet2!$B$2:$G$23,MATCH(Sheet1!B1,Sheet2!$A$2:$A$23,0),MATCH(Sheet1!A3,Sheet2!$A$1:$G$1,0))

    Note also how I have "absoluted" the ranges usung $
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Index/Match Formula Reference Error

    The problem is this

    =INDEX(Sheet2!B3:G3,MATCH(Sheet1!B1,Sheet2!A2:A23,0),MATCH(Sheet1!A3,Sheet2!A1:G1,0))

    Your indexed range is only 1 row, B3:G3

    But your first match is 22 rows A2:A23
    So if that Match is any number other than one, say 2, then it becomes
    =INDEX(B3:G3,2...
    There is no 2nd row of B3:G3


    That indexed rang needs to match the number of rows in the first match, and the number of columns in the 2nd match.

    =INDEX(Sheet2!B2:G23,MATCH(Sheet1!B1,Sheet2!A2:A23,0),MATCH(Sheet1!A3,Sheet2!A1:G1,0))

  7. #7
    Registered User
    Join Date
    11-17-2016
    Location
    New York, NY
    MS-Off Ver
    2016
    Posts
    3

    Re: Index/Match Formula Reference Error

    Thanks so much!!!!

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Index/Match Formula Reference Error

    You're welcome.

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Index/Match Formula Reference Error

    Happy to help

  10. #10
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index/Match Formula Reference Error

    Here's another one...

    =VLOOKUP(B$1,Sheet2!A$1:G$23,MATCH(A3,Sheet2!A$1:G$1,0),0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Index/Match Formula Reference Error

    Actually, the 2nd match has a similar problem..

    =INDEX(Sheet2!$B$2:$G$23,MATCH(Sheet1!B1,Sheet2!$A$2:$A$23,0),MATCH(Sheet1!A3,Sheet2!$A$1:$G$1,0))

    The 2nd match is referencing A1:G1, but the indexed range is B1:G23
    Again, MORE columns in the matched Range (7) than there are in the INDEXED range (6)

    Probably should be
    =INDEX(Sheet2!$B$2:$G$23,MATCH(Sheet1!B1,Sheet2!$A$2:$A$23,0),MATCH(Sheet1!A3,Sheet2!$B$1:$G$1,0))

+ 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. Replies: 5
    Last Post: 01-30-2015, 06:39 PM
  2. [SOLVED] Recieving inconsistent #N/A error using Index Match with 24 hour clock reference
    By Baracudabill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-11-2014, 12:05 PM
  3. Replies: 4
    Last Post: 01-13-2014, 04:16 AM
  4. [SOLVED] Reference to named range to be used in index match formula!! Help Please!!
    By Optimum in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-24-2013, 06:54 AM
  5. [SOLVED] How to change reference area automatically by dragging Index Match Formula down
    By Nuada in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2013, 01:19 PM
  6. Replies: 3
    Last Post: 05-02-2013, 01:31 AM
  7. #Value error when using INDEX and MATCH to reference a cell
    By willow77 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-01-2013, 08:56 AM

Tags for this Thread

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