+ Reply to Thread
Results 1 to 3 of 3

Is it Possible to Make an Array Length Dynamic?

  1. #1
    Registered User
    Join Date
    03-28-2010
    Location
    New York
    MS-Off Ver
    Office 365
    Posts
    57

    Is it Possible to Make an Array Length Dynamic?

    Hi Guys,

    I'm trying to reference arrays and embed them in other formulas. For this to work how I want, I want to make the array length a variable. Is it possible for example if I have the following formula:

    =INDEX(A1:A10,MATCH(C1,B1:B10,0),1)

    Is it possible to make the A10 let's extend to A200 and the B10 extend to B200 by specifying in let's say Cell D1 the row I want to go to? How would I do so? Let's assume now Cell D1 is set to 10 to match the formula above.

    Thanks!

    Larry G.

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

    Re: Is it Possible to Make an Array Length Dynamic?

    Maybe:

    =index(OFFSET(A1,0,0,D1,1),MATCH(C1,OFFSET(B1,0,0,D1,1),0),1)
    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
    Valued Forum Contributor
    Join Date
    02-06-2013
    Location
    Germany
    MS-Off Ver
    365
    Posts
    490

    Re: Is it Possible to Make an Array Length Dynamic?

    If you prefer index since it's not volatile, see if that is what you have in mind:

    =INDEX(A1:INDEX(A:A,D1),MATCH(C1,INDEX(B1:INDEX(B:B,D1),),))
    Last edited by RaulSerg; 05-28-2020 at 05:04 PM. Reason: typo

+ 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. How to make filter value array dynamic
    By dluhut in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-25-2019, 12:18 PM
  2. [SOLVED] Make a dynamic 'sheet' active to be able to extract data into an array.
    By Scoobster_doo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2017, 01:13 PM
  3. Make a dynamic 'sheet' active to be able to extract data into an array.
    By Scoobster_doo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2017, 08:40 AM
  4. Change Array formulas to make them Dynamic
    By julhs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2017, 09:01 AM
  5. [SOLVED] Determining dynamic array length on a constant number of observations
    By lostest in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-13-2015, 04:28 PM
  6. [SOLVED] Fixed-length dynamic array: rolling computation
    By marcobm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-17-2013, 01:15 PM
  7. Replies: 2
    Last Post: 11-05-2011, 03:26 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