+ Reply to Thread
Results 1 to 10 of 10

Index Match keeps returning #REF!

  1. #1
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Index Match keeps returning #REF!

    The formula that I am using looks very similar to this:

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


    I have a master document that is pulling data from several other documents. I have a table with a column labeled adjustments on both documents and trying to find the value that is listed under that header.

    Master Document:

    Agent Adjustments Sessions IBC OBC
    David 10 5 16 3
    Ashley 5 7 18 5


    Ashley's Document

    Ashley
    Adjustment Sessions IBC OBC
    5 7 18 5


    David's Document:

    David
    Adjustment Sessions OBC IBC
    10 5 16 3

    This is the general formula that I am using to bring in the results:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    For some reason when the document asks if I want to update and I click 'update' every cell that has the formula returns !REF#. But I have a different document at work that includes the same formula and different documents but pulls in the information just fine without having to have each individual workbook open at the same time. Typically there will be a total of 16 documents, one per person and the one master.

    Essentially what I am trying to do is keep track of each person. Each person has a separate excel file and then I use the master file to have a general overview of everything. I've included a copy of each of the files to help understand it a little bit better. If further clarification is needed please let me know and I will update accordingly.

    Master.xlsb
    david.xlsb
    ashley.xlsb

    Edit: Updated attachment formatting within post. Also removed original formula and replaced with correct formula.
    Last edited by klturi421; 11-20-2014 at 06:41 PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Index Match keeps returning #REF!

    What is table48? I can't find any reference to it.

    Every reference to that table should have the full filepath.


    =INDEX(DocName.xlsb!Table7[adjustments],MATCH(Table48[[#Headers],[adjustments]],DocName.xlsb!Table7[[#Headers],[adjustments]],0)

    more something along the lines of

    =INDEX(DocName.xlsb!Table7[adjustments],MATCH(DocName.xlsb!Table48[[#Headers],[adjustments]],DocName.xlsb!Table7[[#Headers],[adjustments]],0)
    Last edited by daffodil11; 11-20-2014 at 06:35 PM.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Re: Index Match keeps returning #REF!

    Quote Originally Posted by daffodil11 View Post
    What is table48? I can't find any reference to it.

    Every reference to that table should have the full filepath.


    =INDEX(DocName.xlsb!Table7[adjustments],MATCH(Table48[[#Headers],[adjustments]],DocName.xlsb!Table7[[#Headers],[adjustments]],0)

    more something along the lines of

    =INDEX(DocName.xlsb!Table7[adjustments],MATCH(DocName.xlsb!Table48[[#Headers],[adjustments]],DocName.xlsb!Table7[[#Headers],[adjustments]],0)
    That formula can be disregarded as the formula that I posted at the bottom of the initial post has the full filepath of the document for each reference.

  4. #4
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Index Match keeps returning #REF!

    It doesn't actually.

    =INDEX('C:\Users\Kevin\Desktop\david.xlsb'!Table1[Adjustments],MATCH('C:\Users\Kevin\Desktop\david.xlsb'!Table1[[#Headers],[Adjustments]],C:\MISSING\FILEPATH_TO_TABLE_Table48[[#Headers],[Adjustments]],0))

    The comma between the MATCH parameters means you need to redeclare the full filepath.

  5. #5
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Re: Index Match keeps returning #REF!

    Ooooh, I should clarify.

    Table48 for some reason was named that way automatically by excel. Table48 is actually in the master document where that formula resides. I'm matching the Header in david.xlsb with the header in the master document to give the information that is in that cell.

    Should I have the full filepath even though the formula is within the same master document?

  6. #6
    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,946

    Re: Index Match keeps returning #REF!

    When you create the formula using the mouse, excel should fill in whatever path it needs automatically.
    What *may* make things simpler here (especially if you dont understand structured table referenicing) is to convert your table back into a range, just until you have your INDEX/MATCH sorted out, then re-make it a Table again
    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

  7. #7
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Re: Index Match keeps returning #REF!

    Quote Originally Posted by FDibbins View Post
    When you create the formula using the mouse, excel should fill in whatever path it needs automatically.
    What *may* make things simpler here (especially if you dont understand structured table referencing) is to convert your table back into a range, just until you have your INDEX/MATCH sorted out, then re-make it a Table again
    You sir, made things much simpler for me. I didn't realize that the tables were messing with the formula. And I definitely don't understand table referencing at all. In reality I didn't even need the tables because there aren't enough rows to need the sorting. I was using the tables because it makes formatting much easier...I should stop being lazy.

    But again, Thanks!

  8. #8
    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,946

    Re: Index Match keeps returning #REF!

    Tables most certainly do have their place, and not just for formatting and sorting. if you have formulas, and add new data, tables will copy your formulas down for you automatically, but, as you have seen, the terminology can leave you wondering what happened.

    I have often manually typed in a range or cell ref, so I can see what it is, rather than use the structured formatting of tables

  9. #9
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Index Match keeps returning #REF!

    Not so fast, you can still have the best of both worlds.

    From the Home tab, go to Styles, Format as Table dropdown menu.

    All the pretty, none of the work.



    Lazy is the driving force between good process improvement.

  10. #10
    Registered User
    Join Date
    06-15-2011
    Location
    Converse, TX
    MS-Off Ver
    Excel 2016
    Posts
    72

    Re: Index Match keeps returning #REF!

    That is definitely helpful as well!

    I'm learning all kinds today.

    Thank you both for the assistance!

+ 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. index(match) returning #n/a
    By brian1974 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-10-2013, 08:37 PM
  2. [SOLVED] Index Match returning #ref! but only on some ?
    By nellyc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2013, 04:46 AM
  3. Index Match based on 2 Criteria only returning 1 match
    By stsanders22 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2012, 11:26 PM
  4. [SOLVED] Index & Match returning incorrect value. Arrays fixed and exact match used.
    By SDes in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-07-2012, 08:29 PM
  5. [SOLVED] Match/Index Returning #N/A
    By Will in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-15-2006, 12:15 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