Copy the Multiselect.gs
and dialog.html
files to the Apps Script and refresh your sheet.
One possible solution is to have a sheet for the possible values. E.g. Types
:
Type |
---|
Tp 1 |
And also a table which uses these values like
Name | Types |
---|---|
Nm 1 | Tp 1, Tp 2 |
Nm 2 | Tp 1, Tp 3 |
The validation type for the Types
column could be as follows:
=REDUCE(1, SPLIT(B2, ", ", FALSE), LAMBDA(acc, val, IF(acc = 0, 0, IF(ISNA(QUERY(Types!$A$2:$A, "select A where A matches '^"&val&"$'")), 0, 1))))=1
This script is heavily inspired from the other gist here which implementes the idea of the youtube video here.