+ Reply to Thread
Results 1 to 4 of 4

Index, Match and Indirect giving REF error

  1. #1
    Registered User
    Join Date
    07-15-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2010
    Posts
    10

    Index, Match and Indirect giving REF error

    Hi everyone,

    I have seen many posts on a similar subject and I have tried to adapt posted solutions to my formulae to suit without any success. Basically, i have a cell L3 on a worksheet which contains a worksheet name from within a different file called Bristol & Taunton Book List All Freqs.xlsx. When I use this formulae below, it returns the data as expected without a problem. the worksheet name in this instance is 16 and both files are open.

    =INDEX('[Bristol & Taunton Book List All Freqs.xlsx]16 '!$B:$B,MATCH(C8,'[Bristol & Taunton Book List All Freqs.xlsx]16 '!$D:$D,0))

    When I try to incorporate INDIRECT in to the formulae as shown below, the REF error is displayed

    =INDEX(INDIRECT("'[Bristol & Taunton Book List All Freqs.xlsx]"&$L$3&" '!$B:$B"),MATCH(C8,INDIRECT("'[Bristol & Taunton Book List All Freqs.xlsx]"&$L$3&" '!$D:$D,0")))

    Am I trying to do something that is not possible?

    Any help that you can give would be greatly appreciated.

    many thanks,

    Stan

  2. #2
    Forum Moderator daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,676

    Re: Index, Match and Indirect giving REF error

    You have included the zero from the MATCH function inside the 2nd INDIRECT - that should be outside - try this version

    =INDEX(INDIRECT("'[Bristol & Taunton Book List All Freqs.xlsx]"&$L$3&" '!$B:$B"),MATCH(C8,INDIRECT("'[Bristol & Taunton Book List All Freqs.xlsx]"&$L$3&" '!$D:$D"),0))
    Audere est facere

  3. #3
    Registered User
    Join Date
    07-15-2009
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2010
    Posts
    10

    Thumbs up Re: Index, Match and Indirect giving REF error

    Hi daddylonglegs,

    What can I say? You are a legend. That is so frustrating!!! I looked at this for what seemed like hours, Changing this, changing that. You have saved me a lot of hassle. Thanks again for your help.

    Stan

  4. #4
    Registered User
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,162

    Re: Index, Match and Indirect giving REF error

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. [SOLVED] Three questions starting with Index, Match giving #REF! error
    By JO505 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-02-2013, 07:42 PM
  2. Simple Index Match formula giving me problems with 2 way lookup
    By rikkyshh in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-18-2013, 06:47 AM
  3. [SOLVED] Indirect function giving #REF! error
    By mqdias in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-03-2013, 10:21 AM
  4. [SOLVED] Using Index Match or Vlookup giving unexpected results on imported data
    By jacob@thepenpoint in forum Excel General
    Replies: 2
    Last Post: 07-03-2012, 05:49 PM
  5. Replies: 3
    Last Post: 01-26-2012, 02:37 PM

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