I have 4 hard coded cells on 4 different sheets (within a google sheet file) that I'd like to keep synced. If any of those four cells have been changed, I'd like the other three cells to be updated to that changed value. The trick is that all four can be changed manually. Is there an app script that can do that?
Google Sheets – Sync Multiple Cells to Change Together
google sheetsgoogle-apps-script
Related Topic
- Google Sheets – Automatically Store Updated GOOGLEFINANCE Values with Script
- Google-sheets – How to create a formula in Google Sheets that can sum specific cells based on multiple criteria
- Google Sheets – Use setValue to Update Column Based on Two Others
- Google-sheets – Is accessing multiple Google Sheets Files(not multiple google sheets within the same Google Sheet File) in one script possible
- Google Sheets – Conditional Formatting for Last 24 Hours
- Google-sheets – How to skip 2 rows every time the cell’s content gets > 5 character
- Google Sheets – Setting Values in a Range of Cells Using For Loop
Best Answer
Here is how this can be done. The function
sync
should be set to trigger on edit (via Resources > Current project's triggers). The arrays in the first two lines should be filled with sheet names and cell names that you want to sync.If the edited cell matches one of those, then the rest will be updated to have the same value.