Forum Discussion
Dakkshinamurthi Pan Subramanian
Aug 31, 2017Copper Contributor
Array formula not working in my computer
Hallo People, I want to extract values of a row which has duplicates into seperate columns. I used the below formula {=https://exceljet.net/excel-functions/excel-iferror-function(https://exce...
- Sep 01, 2017
Hi,
It is working !! The syntax was wrong.
=IFERROR(INDEX(names;SMALL(IF(groups=$E5; ROW(names)-MIN(ROW(names))+1);COLUMNS($E$5:E5)));"")
This worked. The snytax on this excel was seperated by semi colons and not commas.
Thanks and best regards,
PeterBartholomew1
Apr 04, 2022Silver Contributor
Dakkshinamurthi Pan Subramanian
An array formula to correspond to SergeiBaklan 's Power Query layout
= MAP(UNIQUE(Groups),
LAMBDA(grp,
TEXTJOIN(", ",, FILTER(Names,Groups=grp))
)
)- SergeiBaklanApr 04, 2022Diamond Contributor
If literally
=LET( groups, UNIQUE(Groups[Group]), names, MAP( groups, LAMBDA(grp, TEXTJOIN( ", ", , FILTER(Groups[Name], Groups[Group] = grp) ) ) ), VSTACK(Groups[#Headers], HSTACK(groups, names)) )- PeterBartholomew1Apr 04, 2022Silver Contributor
Looks elegant! I tended to avoid stacking data arrays with their headers on the grounds that, though they may be part of the same table, a header is not part of the array. I think I may reconsider on the grounds that the latest batch of functions make referencing the data structure reasonably easy and self-contained.
= LET( hdr, TAKE(stackedTbl,1), data, DROP(stackedTbl,1), XLOOKUP(h, hdr, data) )- SergeiBaklanApr 05, 2022Diamond Contributor
Yes, in general you are right