AOB
Well-known Member
- Joined
- Dec 15, 2010
- Messages
- 671
- Office Version
- 365
- 2016
- 2013
- Platform
- Windows
I have a multi-column table listing (among other things) names and associated groups, á la :
I'm trying to put together a formula that returns a concatenated list of names (i.e. multiple columns from multiple matches into a single delimited list of names)
I have this so far :
But that (obviously) just delimits each first and last name with a space, á la :
I'd like to delimit each name "pair" (e.g. First Name + Last Name) with a comma (or some separating character) to achieve something like this :
Any suggestions as to how I could modify my formula to delimit the output in this manner?
Thanks!
Group | SomeField1 | SomeField2 | SomeField3 | First Name | Last Name | SomeField4 | SomeFieldX |
---|---|---|---|---|---|---|---|
A | foo | bar | foobar | Homer | Simpson | foo | bar |
A | foo | bar | foobar | Fred | Flintstone | foo | bar |
B | foo | bar | foobar | Peter | Griffin | foo | bar |
B | foo | bar | foobar | Danger | Mouse | foo | bar |
B | foo | bar | foobar | Yogi | Bear | foo | bar |
I'm trying to put together a formula that returns a concatenated list of names (i.e. multiple columns from multiple matches into a single delimited list of names)
I have this so far :
Excel Formula:
=TEXTJOIN(" ",TRUE,FILTER(INDEX(tblMyTable,SEQUENCE(ROWS(tblMyTable)),{5,6}),tblMyTable[Group]=GroupName))
But that (obviously) just delimits each first and last name with a space, á la :
GroupName = "A" : Homer Simpson Fred Flintstone
GroupName = "B" : Peter Griffin Danger Mouse Yogi Bear
I'd like to delimit each name "pair" (e.g. First Name + Last Name) with a comma (or some separating character) to achieve something like this :
GroupName = "A" : Homer Simpson, Fred Flintstone
GroupName = "B" : Peter Griffin, Danger Mouse, Yogi Bear
Any suggestions as to how I could modify my formula to delimit the output in this manner?
Thanks!