+ Reply to Thread
Results 1 to 4 of 4

Indirect Dynamic Range problem

  1. #1
    Registered User
    Join Date
    01-14-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    10

    Indirect Dynamic Range problem

    I have read, after discovering that a formula I am trying to use for a project wouldn't work, that INDIRECT does not function with dynamic ranges. Is there a way around this?

    My formula is below, it works absolutely perfect when a normal named range is defined. It just doesn't work when I use a dynamic range, which I need to use due to my project's combo boxes being full of empty lines if I don't make the range dynamic. (Or perhaps someone has a another way to remove blank lines form a ActiveX combobox when using a named range as the ListFillRange!)

    Please Login or Register  to view this content.
    B4 being the linked cell of an ActiveX combobox. The choices in the combobox determine which named range the vlookup uses to search for data.

    Any help greatly recieved.

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

    Re: Indirect Dynamic Range problem

    How many dynamic ranges are there?

    You can use a combination of CHOOSE/MATCH.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    01-14-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    10
    Quote Originally Posted by Tony Valko View Post
    How many dynamic ranges are there?

    You can use a combination of CHOOSE/MATCH.

    About 12 dynamic ranges in total in the workbook, one is listed in the combobox, depending on what another combobox's value is. How would i write my formula without using INDIRECT?


    Regards

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

    Re: Indirect Dynamic Range problem

    Something like this...

    List the range names in a range of cells, say A1:A12.

    Then the formula would be:

    =VLOOKUP(A32,CHOOSE(MATCH(B4,A1:A12,0),Rng1,Rng2,Rng3,Rng4,...Rng12),2,0)

    Fill in all 12 range names. The range names in A1:A12 must be in the same order as they are coded into the formula Rng1,Rng2,Rng3,Rng4, etc.

+ 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: 07-29-2015, 08:36 AM
  2. Sum + Indirect using Dynamic Range
    By shocks24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2014, 04:19 PM
  3. [SOLVED] Using INDIRECT with a dynamic range name as the array in an INDEX formulae = #REF
    By Gandalf21 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2013, 09:27 AM
  4. Replies: 15
    Last Post: 09-10-2013, 05:31 AM
  5. VBA Dynamic Range - An Indirect Cell Reference
    By ExcelHelp2013 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2013, 11:08 AM
  6. Replies: 7
    Last Post: 11-30-2012, 01:23 PM
  7. Indirect and Dynamic Range
    By Graham Haughs in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 08-03-2006, 03:40 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