+ Reply to Thread
Results 1 to 2 of 2

VSTACK results of indirect references from an array

  1. #1
    Registered User
    Join Date
    03-16-2023
    Location
    New York, USA
    MS-Off Ver
    365
    Posts
    1

    Post VSTACK results of indirect references from an array

    Hi all!

    I have a massive "demo data" workbook with 50+ sheets. Every sheet is essentially it's own complex array of transformations that results in columns of dynamic arrays.

    The beauty of how it's set up is that every sheet has the same location of these dynamic arrays (see workbook attached). In other words if we have

    3 sheets called:
    • "data1",
    • "data2", and
    • "data3",

    3 columns titled
    • "column1"
    • "column2"
    • "column3"

    And the first row of data is always 4, and "column1" is always in column B, we know that the 3 columns of data in each worksheet are "data#B4" , "data#C4", and "data#D4" (where # is replaced by {1,2,3} depending on the sheet name. Furthermore, because all of the data are dynamic arrays, by adding a "#" to the end of the reference, we can point an INDIRECT() function to the cell and immediately pull in the data.

    I need to aggregate all of the data from all of the sheets into one sheet. Because of the massive amounts of data in each sheet, and the massive numbers of sheets, it's easiest to create an array with these column data references, and then use VSTACK(INDIRECT(<column>,<row>)) to pull in the data from each sheet. The problem is - because of the sheer number of references, it's annoying to have to do each reference by hand. I tried using BYROW(<range>,VSTACK(LAMDA(x,indirect(x))))) to achieve this, but it doesn't work.

    Attaching an example workbook here - any thoughts would me much appreciated!!!!
    Attached Files Attached Files

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: VSTACK results of indirect references from an array

    Delete ALL expected results.

    I13:
    =LET(A,VSTACK(data1:data3!B4:E100),FILTER(A,INDEX(A,,1)<>""))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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] Making an array with INDIRECT() references to worksheets
    By SeaOwl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-22-2021, 08:03 AM
  2. [SOLVED] making Indirect array references dynamic
    By neilsolaris in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-11-2021, 08:34 AM
  3. [SOLVED] Adapting an Index Array to return results based on Indirect function
    By Arcatt in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-01-2019, 06:08 AM
  4. VBA to change indirect references to direct references within array formulas
    By acj06 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2017, 12:16 AM
  5. [SOLVED] Using Indirect() to get dynamic references in an array formula
    By jlb333333 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2015, 10:37 AM
  6. Replies: 6
    Last Post: 10-22-2014, 09:07 AM
  7. Indirect references in Array formulae
    By ninsine in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-30-2013, 09:16 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