+ Reply to Thread
Results 1 to 3 of 3

VSTACK all ranges in Spill array

  1. #1
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    178

    VSTACK all ranges in Spill array

    Hi everyone,

    I have attached a sample workbook; it is a .xlsm file as have used the GET.WORKBOOK function.
    There are no macros within it but felt I should highlight it here.

    In cell K2 of ws 'CPD List' I have a dynamic list of all cell ranges from the other ws I wish to VSTACK.

    In cell B3 of ws 'CPD List' I have used a 3d array but this is static and do not wish to have to reset this every time a new event happens.
    I would use INDIRECT but this does not work with 3d arrays.

    My other thought was to use TEXTJOIN on the spill array in K2 but I cannot get this to work either.

    Does anyone know a way to use VSTACK in combination with the dynamic spill array to produce the list in B3#?
    Attached Files Attached Files
    Last edited by Andrew-Mark; 10-10-2023 at 07:26 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,056

    Re: VSTACK all ranges in Spill array

    You could use something like:

    =DROP(REDUCE(0,K2#,LAMBDA(a,b,VSTACK(a,INDIRECT(b)))),1)
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    178

    Re: VSTACK all ranges in Spill array

    That has worked a charm.
    Now to take that apart and learn something new

+ 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] feed single array via VSTACK and REDUCE issue
    By guillaume0314 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-16-2023, 08:25 AM
  2. VSTACK results of indirect references from an array
    By tdarenkov in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2023, 04:11 AM
  3. [SOLVED] Problem when filter named ranges using VSTACK
    By oteixeira in forum Excel General
    Replies: 6
    Last Post: 01-18-2023, 03:37 PM
  4. VSTACK function with named ranges in a range
    By Lollpopp in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-02-2023, 02:06 PM
  5. Extracting data by Xlookup dynamically spill over two ranges
    By paradise2sr in forum Excel General
    Replies: 2
    Last Post: 10-29-2021, 10:04 AM
  6. #SPILL error using named ranges in dynamic formulae
    By goku1230 in forum Excel General
    Replies: 7
    Last Post: 06-06-2021, 09:05 AM
  7. Spill/array formula to calculate average for specified ranges?
    By ErikBerger in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-27-2021, 07:22 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