K
K
Kusmich2019-08-17 15:27:26
Google Sheets
Kusmich, 2019-08-17 15:27:26

How to get and write to a cell all matched elements from a google spreadsheet column?

It is necessary to somehow search in the column called "NAME", by the string that is contained in the column called "SEORCH_VALUE" , and having found the elements, you need to take data from the field that corresponds to the found element in the "CODE" column.
Example with result
5d57f1f77f443184805597.png
The example shows that the search word "YABLOCO" occurs 3 times in the "NAME" column and corresponds to the codes 1,11,16
which must be written in the "RESULT" column. The same for the search phrase "ANANAS", which we found 4 times,
and the corresponding codes 5,10,15,20 were recorded in the "RESULT" column. The same is true for other search phrases in the "SEORCH_VALUE" column.
The example itself is at the link:
https://docs.google.com/spreadsheets/d/11pc3HTnX84.
What formulas or combinations of formulas should be used in order to perform such a search?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Bcoon, 2019-08-18
@Kusmich

Formula:
=JOIN(",";FILTER($C$2:$C$23;$B$2:$B$23=A2))

D
Dimonchik, 2019-08-17
@dimonchik2013

start with FIND

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question