+ Reply to Thread
Results 1 to 4 of 4

INDIRECT function not working inside MATCH with dynamic ranges

  1. #1
    Registered User
    Join Date
    01-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2011
    Posts
    5

    Question INDIRECT function not working inside MATCH with dynamic ranges

    Hi,

    Long time lurker in here and have found very useful information to incorporate into my Excel worksheets. Thanks in advance to all the Excel gurus here.

    I have perplexing problem. I am getting a #REF error when using an INDIRECT function within a MATCH function to check against a dynamic named range. Basically, I am trying to get the row reference so that I can go back and extract other data from the row (in a table contained in another sheet) into the current worksheet.

    I attach an example file for reference. The issue arises when a Dynamic Named Range is used. In the example file, if a value from a static range is chosen, the match with indirect function works, but it fails with the dynamic range.

    Dynamic Ranges INDIRECT v2.xlsb

    Much thanks in advance.
    Last edited by fotografer; 03-25-2014 at 11:11 PM. Reason: wrong file attached

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: INDIRECT function not working inside MATCH with dynamic ranges

    There is no reason you can't use a dynamic named range in a MATCH function. Your formulas in J7, J9 and J11 fail because XX is not in those lists.


    As for your overall assertion, you are correct in that cannot use a Dynamic Named range in an INDIRECT formula. There are ways around that, meaning NOT using INDIRECT().
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-30-2013
    Location
    Australia
    MS-Off Ver
    Excel 2011
    Posts
    5

    Cool Re: INDIRECT function not working inside MATCH with dynamic ranges

    Quote Originally Posted by JBeaucaire View Post
    There is no reason you can't use a dynamic named range in a MATCH function. Your formulas in J7, J9 and J11 fail because XX is not in those lists.

    As for your overall assertion, you are correct in that cannot use a Dynamic Named range in an INDIRECT formula. There are ways around that, meaning NOT using INDIRECT().
    Thanks for the quick reply. Cells J7, J9, J11 and J13 were meant to serve a checking rows against the actual formula in J5.

    Anyway, after some mucking around, I managed to "solve" the issue by using choose/match functions as per the attached file.

    Dynamic Ranges INDIRECT v3.xlsb

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: INDIRECT function not working inside MATCH with dynamic ranges

    One more method.
    Pl see attached file.
    Attached Files Attached Files

+ 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] Nesting 2 INDIRECT inside an INDEX MATCH - any ideas?
    By Sam the Monster in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2013, 10:25 AM
  2. MATCH function within INDIRECT function not working
    By mgerada in forum Excel General
    Replies: 2
    Last Post: 09-04-2011, 08:37 AM
  3. INDIRECT and dynamic ranges
    By inky in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2007, 04:08 PM
  4. Dynamic Ranges using INDIRECT
    By JAP in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-22-2005, 09:00 AM
  5. Indirect and dynamic ranges
    By Sam in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2005, 03:06 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