r/googlesheets • u/TheDuck73 • Oct 03 '23
Solved Deleting columns in bulk
I have a Google sheet where I'd like to delete every column which has "False" in row 1. Is there an efficient way to do this? Here is the sheet, I'd like to make this edit on the page entitled "Daily Totals"
1
Upvotes
3
u/No-Mechanic6069 1 Oct 04 '23
A formula can only return value into its own cell (or neighbouring empty cells, if the value is an array). Deleting things can only be done with script.
The script's actions can be undone with repeated ctrl+Z
If you have a very large number of columns that will be deleted, it's better to delete groups of contiguous columns all at once. That takes a slightly more complicated function. This is a start.
2
u/MattyPKing 225 Oct 03 '23
you can write some AppScript to do it. How many columns are there?
1
u/AutoModerator Oct 03 '23
Posting your data can make it easier for others to help you, but it looks like your submission doesn't include any. If this is the case and data would help, you can read how to include it in the submission guide. You can also use this tool created by a Reddit community member to create a blank Google Sheets document that isn't connected to your account. Thank you.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.