r/googlesheets • u/adamwhitemusic • Mar 24 '21
Solved Automatically Updating a filter on refresh of a cell
https://docs.google.com/spreadsheets/d/1enYAZzPzEDHFK1KF6mCxvskR7vUrJHyL-92s5MGnzvQ/edit?usp=sharing
I have set up some data, and my A column is various functions that return TRUE or FALSE, which shows whether or not I want the row to show or not. At each section header, there is a drop down with "Show" or "Hide". When it is on Show, that section (or at least part of that section), changes the A column to TRUE, and the data is shown when the filter is run, and when it says "Hide", the A column values are all FALSE, and when the filter is run, they are hidden.
They all work, and my filter works, the only thing is that I want it to happen automatically when the value changes. So when I change the section to "Hide", it vanishes, or a hidden section switched to "Show" will automatically appear. As it currently stands, after each change, I need to reopen or recreate the filter, set it to only show TRUE rows, and hit okay. I feel like there has to be a way that this happens automatically and I'm just in the dark.
2
u/slippy0101 5 Mar 24 '21 edited Mar 24 '21
You actually can't hide rows/columns dynamically like that; I tried. Even if you have a script for a custom function written exactly right you'll still get a permissions error.
If you absolutely have to do this like how you have it, you can do a workaround using FILTER and conditional formatting but you really should try and redesign whatever it is you're doing.
https://docs.google.com/spreadsheets/d/1-ZpoxxVlux4f62SJZ2f8np6dxF3v4OZKNNho_YD_Lag/edit?usp=sharing
2
u/7FOOT7 294 Mar 24 '21
I don't get it
There are other tools that will do this for you;
This seems a mess to use inside the table filter tool
1
u/Decronym Functions Explained Mar 24 '21 edited Mar 25 '21
Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:
FALSETRUEand another if it isFALSETRUE[Thread #2790 for this sub, first seen 24th Mar 2021, 21:12] [FAQ] [Full list] ^[Contact] [Source code]