在找到值的行中的第一个单元格的每个值中写入一个单元格

Write in a cell every value of a first cell in a row where a value was found

不知道怎么称呼它,但基本上,在这个例子中:

Here

我需要 C2 通过查找从 C8 到 C12 的文本 "John" 来找出 John 所在的位置,然后可能使用 JOIN 函数将 "Mall, Home, Library" 的值写入 C2。

我试过很多不同的组合,但似乎无法理解。也很难找到它,因为我无法正确描述这个问题。任何帮助将不胜感激。

我创建了一个与你的类似的 sheet,这个公式对我有用:

=FILTER(B8:B12, REGEXMATCH(C8:C12, "John"))

虽然不使用 JOIN 函数。