Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
273 views
in Technique[技术] by (71.8m points)

How to concatenate all occurrences of a Google Sheets Query

I have two columns of data and one other column which contains the search key. I am trying to fetch all results that contain a specific text which I'm able to do. The challenge is that I need to concatenate all the occurrences into one single cell.

I have tried the following formula: =ARRAYFORMULA(IFERROR(VLOOKUP(F2:F,B:C,2,FALSE),""))

Which works but halfway through. So what remains is fetching all the other results into one cell. Currently, it's only fetching a single result.

enter image description here

In this image, the desired output is in F2 for the search key Paul in E2.

Link to my spreadsheet. https://docs.google.com/spreadsheets/d/16GujlPIn3sqh4DX-taG5b65futHBJrgi6rNmj5zNmdM/edit?usp=sharing

question from:https://stackoverflow.com/questions/65850391/how-to-concatenate-all-occurrences-of-a-google-sheets-query

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

use:

=JOIN(,FILTER(B:B, A:A=E2))

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...