Can’t pass a range to a lambda using Let and Makearray functions

The construct of INDEX() >>:<<INDEX() will work when applied to ranges. Not to arrays AFAIK. It will lead to these errors. Maybe try something like: =LET(range,A1:D2,MAKEARRAY(ROWS(range),COLUMNS(range),LAMBDA(r,c,SUM(INDEX(range,r,SEQUENCE(c)))))) This would resemble the construct of your inital formula. However, in the linked question you have mentioned that you’d like to use SCAN() in combination with BYROW(). You have … Read more

How Do I Make FLATTEN Work for Non-Contiguous Ranges?

Edit 7/4/22: ms365 now has introduced a function called VSTACK() and TOCOL() which allows for the the functionality that we were missing from GS’s FLATTEN() (and works even smoother) In your case the formula could become: =TOCOL(A1:D6,1) And that small formula (where the 2nd parameter tells the function to ignore empty cells) would replace everything … Read more