Forum Discussion

Lorenzo's avatar
Lorenzo
Silver Contributor
Jun 15, 2022
Solved

Stack sequences of various size

Hi With Office 365/Windows, how do I generate the Expected dynamic array from the Inputs range?     No Power Query nor VBA please, LAMBDA is fine though Thanks
  • mtarler's avatar
    Jun 15, 2022

    Lorenzo I bet one of those new text manipulation functions may help do this but I don't have beta channel so here is my solution:

    =LET(in,Inputs,inc,SCAN(0,in,LAMBDA(c,I,I+c)),s,SEQUENCE(SUM(in)),s-XLOOKUP(s,inc+1,inc,0,-1))

Resources