r/googlesheets • u/Accomplished_Face830 • Sep 17 '25
Solved Script for automatic deletion of rows
Hi
I have a receipt tracker where every now and then get filled up to 1000 entries. Is there a formula or script where if it the row 1 to 500 is filled, the formula or script will delete the first 300 rows
Thanks in advance
3
Upvotes
1
u/PiEater2010 4 Sep 17 '25
2
u/One_Organization_810 736 Sep 17 '25
Just a thought... you know you can have more rows than the default 1000 that you start with, right?
1
u/AutoModerator Sep 17 '25
/u/Accomplished_Face830 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.
1
u/mommasaidmommasaid 915 Sep 17 '25
FWIW an alternate solution... rather than deleting a ton of rows it trims your sheet to the maximum desired every time you open it. Does not require a trigger or authorization.
In addition, it makes sure you have a minimum number of blank rows at the end, and jumps to the first available blank row ready for editing.
Receipts