Microsoft has announced many new array functions (https://techcommunity.microsoft.com/t5/excel-blog/announcing-new-text-and-array-functions/ba-p/3186066), including HSTACK
and VSTACK
, which combine several arrays into one by (unsurprisingly!) "stacking" them horizontally or vertically. The new functions are currently only available for some users in the Beta channel.
I am building a spreadsheet where those functions would be incredibly useful, but it has to be used by other users in the Current channel. I have three "tables" (not Excel tables, but table=shaped grids of data), with the same columns, where each column is an array formula. I would like to consolidate them into a single table, and refer to the entire content as to a single array.
Is it possible to implement some version of HSTACK
and VSTACK
with other array formulas?
Notes:
I already have access to the other, slightly older, array formulas such as
SEQUENCE
,FILTER
,MAP
,SCAN
,REDUCE
, as well asLAMBDA
.I assume that any replacement formula would be very inefficient compared to a native implementation, but this is not an issue in my case.
In my case, I already know that the arrays will have compatible sizes (e.g.
HSTACK
a 3 rows x 2 columns and 3 rows x 4 columns arrays), but I don't know the size in advance.A pure formula would be preferable to a VBA UDF, but the latter could be a good solution too.