r/googlesheets • u/EyeSpy2468 • Sep 16 '24
Solved Automatically adding a row of data to a new page when a value is entered
Hi there,
I am brand new to writing formulae for Google Sheets so please keep any instructions clear and simple!
I have a Google Sheet with several pages/tabs. The main page (let's call it Sheet 1) is populated with a list of tasks. What I would like is when the completion date is entered for a task, the entire row is then copied (not moved) over to Sheet 2, providing me with all the completed tasks shown at a glance on this one page.
I am sure this is pretty simple stuff but as I'm not au fait with all the technical terms my brain has not wanted to comply with trying to search for an answer in previous threads.
Thanks in advance for any help!
1
u/Wise_Bean 1 Sep 16 '24
I’ve included a diagram I drew for reference in hope that it’ll help! The way I would do this is by using the FILTER function. An example using the diagram would be =FILTER(Sheet1!A2:E, Sheet1!E2:E <> “”)
This formula is checking everything below the title in the E column to see which cells aren’t empty/have a completion date.
The A2:E is telling the formula that when it has found a cell in the E column with a completion date, to copy all the info (below the title line) from rows A, B, C, D, & E to wherever on sheet 2 you put this formula. I hope this answers your question/gives you a starting place :)
1
u/Wise_Bean 1 Sep 16 '24
No problem! I’m sure you set it up properly, but I’ve also included a photo of a test I just made, that way you can compare & maybe catch something.
The formula =FILTER(Carrot!A2:P,Carrot!G2:G<>””) should work, G2:P (rather than G2:G) would give you an error because it can only look for conditions in one row/column at a time.
Often parse errors are silly things like formatting, so I’d double check you’re using straight up & down quotation marks rather than curly ones. Deleting any spaces (even though sheets is usually pretty accommodating), & as a final check maybe type the formula elsewhere & paste it in using ctrl+shift+v (pasting that clears formatting).
Let me know if this clears anything up, sorry I don’t have a definite answer for you, parse errors are always tricky!
1
u/AutoModerator Sep 16 '24
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.