Silverman
Silverman

Reputation: 307

Filter by individual entries in comma separated lists in Google Sheets

Let's assume I had the following table:

enter image description here

I want to apply a filter so that I only see the rows that contain "cat" among the comma separated "tags" in Animals column. The regular filters, of course, don't separate the possible values but instead the filter is populated with the whole string: "dog", "dog, cat", "cat, fish, bird", etc.

enter image description here

Is there a way to get the filter to populate with the individual values "dog", "cat", "fish", etc.?

Alternatively, would you suggest a different table layout to achieve a similar solution, still using the manual filters? One that does not require one column per possible animal type, with boolean value.

Finally, if no solution is possible, of course there is always the option to do it with formulas, something like adding a separate cell whose input is searched in the Animals column and the corresponding entries are shown/hidden, but that is not what I am aiming for.

Upvotes: 1

Views: 1022

Answers (1)

CMB
CMB

Reputation: 5163

Solution:

Use Filter by Condition -> Text Contains, then put cat.

enter image description here

Upvotes: 1

Related Questions