M
M
m4son2020-01-24 12:29:03
Google Sheets
m4son, 2020-01-24 12:29:03

How to display matched values ​​in google spreadsheet?

There is column 1, in which the name of the product, and there is column 2, in which the categories of the product. It turns out that the product can be in several categories. How to display a pivot table, which will indicate the product and all categories for it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2020-01-25
@m4son

The easiest way is to use the formula to combine everything.

=ARRAYFORMULA({UNIQUE(A3:A), TRIM(
  REGEXREPLACE(
    TRANSPOSE(QUERY(IF(A3:A=TRANSPOSE(UNIQUE(A3:A)),B3:B&", ",""),,TRANSPOSE(ROWS(A3:A)))),
    "(^\s+|\s*,\s*$)",
    ""
  )
)})

5e2c4544a8caf855030593.png
Unfortunately, without an example, you can not download something specific.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question