I would like to dynamically change the value of the candidate list in the cell validation feature of a Google Spreadsheet using the Google Apps Script.
I failed to create dynamic dropdown list in a Google Spreadsheet using the Google Formulas Feature. In Excel, it is possible in Excel Spreadsheet using the INDIRECT function set in the cell where the dropdown list feature works, referring the cell the value of which is set the list range name dynamically.
Times have changed see this blog post
My spreadsheet example that could use some improvements
The blog post a simple way to do it. My code starter is
Unfortunately it's not possible to manage cell validation using Apps Script. There's an enhancement request opened regarding this. You should star it to keep track of updates and kind of vote for it.
Also, Excel INDIRECT feature does not work for Google Spreadsheets.