Sep 21 2022 06:42 AM - last edited on Nov 09 2023 11:09 AM by
Hi guys,
I would like to know how to remove duplicates from a drop down list. I would point out that:
- the source is on another sheet and is growing monthly
- I don't want to create an intermediate list
Thanks in advance :)
Sep 21 2022 07:05 AM
The source of a data validation drop down list must either be a fixed list of values in the form of a text string (limited to 255 characters), or a range. It cannot be an expression that doesn't evaluate to a range. So I don't think you can do this without an intermediate list.
Sep 21 2022 07:22 AM
SolutionThe best way to do this at present is with the intermediate list using:
=SORT(UNIQUE(range))
Then refer to the spill using # notation in the data validation menu. Unfortunately, data validation won't accept UNIQUE so we must make do. It's interesting that TAKE and DROP can be used in data validation but I don't believe there's a way to use them and only pull unique values if UNIQUE is off the table.
Sep 21 2022 07:22 AM
SolutionThe best way to do this at present is with the intermediate list using:
=SORT(UNIQUE(range))
Then refer to the spill using # notation in the data validation menu. Unfortunately, data validation won't accept UNIQUE so we must make do. It's interesting that TAKE and DROP can be used in data validation but I don't believe there's a way to use them and only pull unique values if UNIQUE is off the table.