I have created a spread sheet to track appointments. Within this spread sheet I have dynamic dependent drop down lists, so the choice from list 1 will populate the options in list 2. This is as follows:
Cell C2: Client - Client 1 or Client 2. (this is for the use of the example, the actual lists will expand.)
If cell C2 = Client 1 then the address drop down is as below:
Cell C3: Address - Address 1 or Address 2.
If cell C2 = Client 2 then the address drop down is as below:
Cell C3: Address - Address 3 or Address 4.
The data validation for the client list is simple because this is constant and can be copied from column to column. The data validation for the dependent address list, however, can not be copied across multiple columns as it will always refer to column C and lose connection with the relative client list.
The actual data validation for the cell C3 (Address List) is below:
Cell Range = 'DIARY (V-2.1)'!C3
Criteria = 'DIARY (V-2.1)'!C53:C55
The cells C53:C55 are populated by a filter formula which will sort the relevant addresses dependent on the choice of client in cell C2, this in turn populates the address list in C3.
It may be worth noting that I have 10 sets of these appointment slots per column (10 per day) so I have used a filter function for each of these separate appointments so they work independently, but even this is tedious so my need is to be able to copy the column (or just the data validation) from column C onward and have it stay relative to the filter functions in that column.
Please see the below link to the example spreadsheet and this will all make sense! In the example I have copied column C to column D and the data validation for the address list has detached for all ten appointment slots. (permission is free for all to edit.)
Note: These cells must be drop down lists - list from range - for the functionality of this specific spreadsheet.
If anyone can help with this it would be MASSIVELY appreciated as I have diligently scoured the forums and cannot find a solution. I did see this video (which is way over my head) that seems to accomplish this using java script:
https://www.youtube.com/watch?v=ZiYnuZ8MwgM&feature=youtu.be
Google Sheets does not currently have a built-in solution for copying/filling data validation references or formulas relatively. But somebody already wrote a nice script in this Google Docs forum post. To avoid just a link as an answer, I'm going to copy in the script and instructions here. Credit to AD:AM from Google Docs forum.
How to use their script:
Link to original solution's example Google Sheets with script already included - you can save your own copy and then start using.
Or to recreate from scratch, here is the script.