• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Concatenate with index match?

Hello,

I have a workbook that has three columns (A, B, C). I think I'm looking to use the Index Match as well as the Concatenate function. What I would like to accomplish is located in column D & E.

Any help would be appreciated. Thank you.
 

Attachments

  • Index concatenate with index match.xlsx
    138.4 KB · Views: 10
Thank you herofox,

On the file you uploaded in column E 'one way' is only accounting for two of the entries in column C. For Acute there should be 4 entries total.

Also, on the third way is it possible to give each entry a new line in the cell so they appear like this:

ou shi jing
ji tou shi
lian shi
Middle notes

Thanks again
 
Hi shadedlight, What you want to accomplish is very easily done with Power Query (Get & Transform).

1. Load range into PQ (mouse operation)
2. Group By Column2; using advanced and select "All Rows" (mouse operation)
3. Get the first Column out of the created SubTables to generate a list (a formula you need to type)
4. Extract the values with a custom separator "Line Feed" (mouse operation)
5. Load to excel (mouse operation)

Code:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Column2"}, {{"All", each _, type table [Column1=text, Column2=text]}}),
    #"Added Custom" = Table.AddColumn(#"Grouped Rows", "List", each Table.Column([All],"Column1")),
    #"Extracted Values" = Table.TransformColumns(#"Added Custom", {"List", each Text.Combine(List.Transform(_, Text.From), "#(lf)"), type text}),
    #"Removed Columns" = Table.RemoveColumns(#"Extracted Values",{"All"})
in
    #"Removed Columns"
 

Attachments

  • Copy of Index concatenate with index match.xlsx
    154.7 KB · Views: 7
Thank you G.,

That's exactly what I was looking to do!

I'm attempting to update column 1 on sheet one and then refresh the sheet but there is an error.

Data --> Refresh all

The data connection can't be refreshed, as this type of data connection is not supported in this version of Excel.

Following data range failed to refresh:
• ExternalData_1
Continue to refresh all?

Security warning: Data connectoins have been disabled.
 

Attachments

  • Copy of Index concatenate with index match-2.xlsx
    166.7 KB · Views: 12
Hi again, it simply works with your file on my pc.
Normally you can enable data connections
66623

It should then work on refresh.
 
I did enable the content but received these messages.
 

Attachments

  • Screen Shot 2020-03-28 at 11.23.05 AM.png
    Screen Shot 2020-03-28 at 11.23.05 AM.png
    42.6 KB · Views: 5
  • Screen Shot 2020-03-28 at 11.23.57 AM.png
    Screen Shot 2020-03-28 at 11.23.57 AM.png
    20.1 KB · Views: 5
That's no hassle. Here it is.
 

Attachments

  • Copy of Copy of Index concatenate with index match-2.xlsx
    166.5 KB · Views: 10
Back
Top