Forum Discussion
Formula for returning multiple exact matches
"so we can't use VBA or macros or arrays or what have you"
I am not convinced that statement is correct; my understanding is that Dynamic arrays, Lambda, Typescript, Python were all introduced as part of the push to achieve platform independence.
As a 365 beta user I haven't used anything but array formulas for several years now.
I would suggest using a 3D array to hold the relevant portion of column A across sheets and then something of the sort
= LET(
nameheader, TOROW(sheetName),
located, HSTACK(data)=target,
rowIndex, SEQUENCE(ROWS(located)),
rowNumber, BYCOL(IF(located, rowIndex, ""), LAMBDA(c, TEXTJOIN(";", , c))),
FILTER(nameheader & ": " & rowNumber & " - " & target, LEN(rowNumber))
)
- PeterBartholomew1Oct 08, 2023Silver Contributor
No, I stick to Windows desktop, so I just hoped that your application might be one of:
- Excel 365 for Windows
- Excel 365 for Mac
- Excel 2021
- Excel 2021 for Mac
- Excel for iPad
- Excel for iPhone
- Excel for Android tablets
- Excel for Android phones
- Excel for the web
which support Dynamic arrays.
- Cmoreno89Oct 08, 2023Brass ContributorI'm actually on an android tablet, but if I were to enter your formula, excel wouldn't recognize it? Or am I wrong?
- PeterBartholomew1Oct 08, 2023Silver Contributor
I believe it should work but I have no way of testing that.
I suggest building the formula step by step to test the functionality.
First one needs 3D named ranges 'data' and 'sheetname' (direct references could be used but look horrible).
Then you test to see whether TOROW and HSTACK exist. If they do, you are on a roll. If not, you are stuck with legacy methods 😞