Explanation
Data validation rules are triggered when a user adds or changes a cell value.
When C4 contains the text “See full list”, IF returns the named range long_list.
When C4 is empty or contains any other value IF returns the named range short_list.
If you are new to named ranges,this page provides a good overview.
If they first select “vegetable” they then see a list of vegetables.
More than one condition can be tested by nesting IF functions.