Members-only tutorial
Watch the video and get the practice sheet with membership.
About this Tutorial
Sheet Resources
Video Transcript
<div>00:00 Hello, this is a really fun and very commonly asked question in Google sheets.
I get asked this fairly often and sometimes I answer the person directly, but in this video, I'm going to answer everyone who has this question, because I think it's a really useful tool.<br>00:20 But I will, at the end, tell you all the drawbacks and some of the issues, cause it's a very simple script.<br>00:26 What we're doing is we have a line of data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab or a sheet of data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab , and we want to say, approve this or go through it in some way, add some information and let it get to go over to another sheet.<br>00:41 In this case, we're saying move to Discover how to move data to another sheet seamlessly. Opens in new tab sheet two and column two, we're saying yes.
And when that happens, you see that eight number Understand how to work with numbers in Google Sheets. Opens in new tab over on sheet two, it gets moved and everything in that row gets moved.<br>00:55 All right. I will show you how this works and you're able to go and grab this in this sheet and in this script all you have to do is go obviously to the sheet that I shared with you in the comments Find out how to add and manage comments in your sheets. Opens in new tab here go to tools, script editor Explore the script editor to automate tasks in Google Sheets. Opens in new tab , and here is what I have done.<br>01:16 And this is a code that is using the function Get to know functions and how they can simplify your calculations. Opens in new tab on edit.
You can do multiple things on, edit on edit is a function Get to know functions and how they can simplify your calculations. Opens in new tab that exists that you fill in what you want it to do.<br>01:28 And this will check every single edit. I'll go more into what that means later, but let me just walk through this very, very quickly here.<br>01:36 What it's doing is it's getting the active sheet Learn about the active sheet and its role in your workflow. Opens in new tab and it's saying, Hey, is this the sheet one, right? If S dot get name is equal to sheet one.<br>01:47 And then it's getting the act of cell here where Understand how to use the query where clause for data filtering. Opens in new tab we're trying to figure out what cell are we actually editing on?<br>01:53 And then over here we say, is that cell column two.
So here's the two in there. And does the value that that cell has now after the edit, is that equal to S now if all of those are true, if, if you're editing on sheet one, if you're in column two and the value that the cell has at the moment is yes,<br>02:14 then we will take that entire row Learn how to manipulate entire rows in your Google Sheets. Opens in new tab . And we're going to find out what the last row on sheet two is right here, get last row.<br>02:23 And with this rate and with these three functions Discover various functions that can enhance your spreadsheet capabilities. Opens in new tab , perform functions Discover various functions that can enhance your spreadsheet capabilities. Opens in new tab , work in a Pender row.
First, we're going to make sure that there's a place on sheet two.<br>02:36 So we actually create a renewal row with nothing in it. Then we copy, we use this dot copy to Find out how to copy data to different locations in your sheets. Opens in new tab going from range Understand how to define and use ranges in Google Sheets. Opens in new tab , which is she wants to end ranges Learn about different types of ranges and their applications. Opens in new tab sheet two in the last row.<br>02:48 We're getting the raw right row here that we're on. And then we're going back and we're deleting the row.
So now if you want to use this formula Get familiar with the syntax used in Google Sheets formulas. Opens in new tab and you want to do things like you don't want to move the road, but you just want a copy of the row.<br>03:02 All you have to do is go to this line 18, tap a couple, a, these are backsplashes here in front of that delete row Discover how to delete rows effectively in your spreadsheets. Opens in new tab .<br>03:10 And you get the exact same thing.
Everything gets moved or not moved, but copied to sheet two, but it doesn't get deleted from sheet one, which is really useful.<br>03:20 When you want to say, Hey, I want a very basic sheet of data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab that I append some enrich with some information.<br>03:30 But maybe I want to send five to six of these items over to an editor Explore the editor features available in Google Sheets. Opens in new tab , or I need to send it up to approvals to a manager or something and move that data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab around.<br>03:41 And I don't want the manager to have to go through all of, all of these this whole sheet.
So we create sort Learn how to sort data to make it more manageable. Opens in new tab of another view for him on another sheet and say, Hey this is what we did.<br>03:52 And here's the five items. So he did, you know, that's really helps you manage your data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab , but I will walk you through some of the issues.<br>04:00 So let me just show you right now. This is going to show you what it looks like when you just copy it.<br>04:05 So see this doesn't delete, but on sheet two, we have the data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab . You can also change this column to say a checkbox Understand how to use checkboxes for data management. Opens in new tab .<br>04:18 Now the tricky part of check boxes is that there are two States true and false and uncheck.
Checkbox Understand how to use checkboxes for data management. Opens in new tab is false and a checked checkbox Understand how to use checkboxes for data management. Opens in new tab is true.<br>04:30 So if I want to say change the what is needed to change this to the next sheet, all I have to do is change this column to column four.<br>04:44 Cause that's D column where Understand how to use the query where clause for data filtering. Opens in new tab the check box is, and then the value it has to be true. Now let's, I'm going to type in true without quotation marks.<br>04:56 Save that to double-check. And now all I want to do is move this one and let's double check. Oh, long time movies is going to copy it.<br>05:05 Right? Okay.
It's not doing so let's, I'm going to go over and check out why it failed, probably because I need to put that in quotes.<br>05:17 Yep. True is not defined. So let's do this. Let's just move that to quotes. And now we're going to see that actually see if two got moved to do, do.<br>05:37 Yeah, It looks like it did. It thinks it completed it. Okay. Let's double check that it's it's not deleting anything.<br>05:52 So let me bring that back. Just so we see some, something happened instead of having to check double check here.<br>06:00 Okay. Right now just fix the issue.
It just had to be lowercase true. So now we move 10 over to sheet two.<br>06:18 There it is. With the check box checked, go back to our enter all this is Laura caser. So I had just had an uppercase to Altru.<br>06:26 It didn't work. It worked with lowercase. True. So I'm going to leave the if you're watching the video, you can see that this is true, but if people are not watching the video, I want to make it so that we are editing this on what was originally here, right?<br>06:47 The, not the checkbox Understand how to use checkboxes for data management. Opens in new tab , but the, yes. So we just change this back to yes.
And so you now know how to move a row to another sheet.<br>07:05 You also know how to move a not move a copy a row to another sheet. And I think this is really exciting because it offers a lot of possibilities and a lot of use cases for managing your data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab .<br>07:16 Here's some little drawbacks. If you are at any, a great deal of information let's like, take this I'll show you actually.<br>07:28 So say, I want to take this. Yes. And apply it to all of these. And I want all of these to move.<br>07:34 I do that. And when I used to do this, it would only move the top one.
And now it's moving.<br>07:43 None of them. This is because in this very simple formula Get familiar with the syntax used in Google Sheets formulas. Opens in new tab , in this very simple script, we're really only looking at one thing like one row at a time.<br>07:56 We even counted here one row at a time in this sort Learn how to sort data to make it more manageable. Opens in new tab of range Understand how to define and use ranges in Google Sheets. Opens in new tab . It says, get the row, get the column.<br>08:02 Then the number Understand how to work with numbers in Google Sheets. Opens in new tab of rows, which is one and the number Understand how to work with numbers in Google Sheets. Opens in new tab of columns and even setting a hard count of one here.<br>08:09 So this is really only useful.
If you want to do this one at a time, again for approval sake or for just enriching some data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab say you want not just the data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab to be the correct thing.<br>08:23 Like, yes, you just want to know, Hey, I made a change in column B. All you have to do there is delete this section that says, and our dot gate value equals.<br>08:33 Yes.
If you delete that, then any time any edit happens in column two or column B, then those rows will move.<br>08:44 One other issue with this, if you are using this to with other people, like say you have a large amount of people editing data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab or adding data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab the script, as you can see does not move lightning quick.<br>09:01 It's not going in a moment.
It is happening in less than a second, but when you have a 10, 20, 30 people making edits all at the same time, it gets a little bogged down.<br>09:15 One way I got around this was just letting everyone know, Hey, sometimes the, the script does not necessarily work exactly.<br>09:23 If two people hit the same edit button at the same time. But people were very, if it was inside of a business, I knew everyone and everyone was very compassionate about that.<br>09:32 And, and sort Learn how to sort data to make it more manageable. Opens in new tab of knew that the script is saving them a lot of time and energy and focus.
And so if it does fail in one, out of a hundred times, it's fine.<br>09:43 They'll know how to fix it. They sort Learn how to sort data to make it more manageable. Opens in new tab of just delete, they go delete that and then do it again. That's how you get around it.<br>09:50 You sort Learn how to sort data to make it more manageable. Opens in new tab of undoing it and then just do it again. The other issue and the last issue is sort Learn how to sort data to make it more manageable. Opens in new tab of a data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab issue and a day, I don't even know what it's called, but essentially if you are not moving the data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab , if you're not saying, Hey, take this entire row Learn how to manipulate entire rows in your Google Sheets. Opens in new tab , moving over to this other sheet and make<br>10:08 sure it's deleted. What you're going to have is a data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab in all sorts of places.
But the good thing is out of this is that it's the structure of the data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab .<br>10:20 Schema is going to stay the same. You're getting the entire row Learn how to manipulate entire rows in your Google Sheets. Opens in new tab . But you are going to make multiplying your data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab and where Understand how to use the query where clause for data filtering. Opens in new tab it is.<br>10:30 You might fall into a rabbit hole like I did when I first discovered this and started doing this kind of thing.<br>10:37 He was like, if you can be moving data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab and copying data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab to certain places, you can create something like a change log.<br>10:42 You can say, Hey, I don't want to just move this over to sheet two.
I want to keep a record Find out how to keep a record of changes in your sheets. Opens in new tab that this was moved from sheet one to sheet two.<br>10:51 And so you start having like a third she, where Understand how to use the query where clause for data filtering. Opens in new tab it's like every single change, every single edit you keep track of.<br>11:01 If you do that and you have say 10 to 20 people, or you have a sheet that you have, you know, even 10 to 20 edits or 30 to 50, 60, a hundred edits a day, which doesn't sound like a lot, but it adds up, you might have 360 500 that's like 36,000 rows.<br>11:23 But by the end of the year, or you might want to just you might want to do things in bulk at them at that point.<br>11:31 And again, we'd go back into what I referenced earlier.
These bulk edits don't really work on with this on edit or this code.<br>11:40 Just a few pitfalls that you might run into. I think this is super simple script. So you're more than welcome to use it.<br>11:50 Say once you understand how to use it, use it on a CRM. Very good for that.
I one of the most interesting videos I did is use a transpose to, to show data Learn how to manage and manipulate data effectively in Google Sheets. Opens in new tab in a different way on a sales CRM, if you have used that, and if you're building a sales CRM, and you have multiple editors, this<br>12:11 is really awesome to use to get information and enrich information and, and, and get that workflow and the process really moving without you having to copy paste and cut lines and rows when you do these changes and edits.<br>12:27 Thanks for watching. Have a good one. Bye.</div>
Courses
Sheet Stories / Video Notes + ADDED: Email Notifications
00:00:00
Fast FAQS
Enter Google Drive File Name Get URL
ChatGPT Clone in Google Sheets Part 2
Create an Internal Google Sheets Add-on
Tweet From a Sheet
Why Different Cell References in AI Integration in Sheets?
Show Sheet Tabs Based on Edit
Add Title Case to Google Sheets
How to Power Testimonials with Google Forms and Sheets
Getting Started Coding in Apps Script
Seek Errors When Coding Apps Script
Think Like a Programmer: Develop The Mindset of an Apps Script Coder
ChatGPT Clone in Google Sheets Part 1
Embed a Number in a Website from a Google Sheet
Create Navigation Like A Book or Presentation
Add Click Tracking To Your Google Sheets | Bitly in a Google Sheet
00:29:08
Hold a Giveaway Raffle in a Google Sheet
Quickstart Tutorial OpenAI API in Google Sheets
Capture Emails from Website Form to a Google Sheet (Without Zapier)
Embed a Headline in a Website from Google Sheets
Create a new Spreadsheet from just a Name in a Sheet.
00:05:21
Bjarne Asks: Can I show the Last Time of the Last Edit in a sheet?
00:05:43
Email Yourself a Cell from a Google Sheet, Every Day
OpenSea Data Inside Sheets
Create an Email Campaign Stats Calculator
00:35:13
Twitter App Clone in a Google Sheet
Dylan Asks: How to Automatically Delete Rows If Cell Contains Value
Highlight Row as You Move Your Cell Selection
Create a Timer with Apps Script
LinkTree in a Google Sheet
00:11:22
Password Protecting Data In a Google Sheet
Automatic Weekly Backup of Google Sheets
Create a CPM Custom Function (Create Better Calculators!)
Move Entire Row when a Cell is changed to "Yes" - The $75,000 Google Script
00:12:29
What Can You Automate in Google Sheets? Every single trigger available to Google Sheet users
Sync Two Tabs Without ImportRange()
Google Sheets Stories? No! But we'll add timestamped video notes to your google sheets.
00:00:00
Password Protecting Data In a Google Sheet Part 2 The Basics
Benoit Asks: How to Convert Case
00:07:35
Learn to Code in Google Sheets, For Programmers
Add a Checkbox to Turn on Dark Mode
00:05:10
Write Your First Script
00:08:31
Find Keywords in Any Column. Create quick search dropdown to find keywords
00:09:37
Basic CRM - Add a Powerful Script To Move Row Based on Status
How To Improve: 1,000 Business ideas: Business Idea Generator
00:11:20
Let's Make a Bookmarklet!
00:12:37
Troubleshooting Bitly in a Google Sheet Script
00:07:07
Unique Features - Design a Better Dashboard Part 2
00:04:13
How To Set Up Stripe Webhook to Google Sheets with Google Script
00:22:10
How to Edit a Macro
00:08:22
Sheet Stories / Video Notes + Clear 24 Hour Old Videos
00:35:10
Add A Timestamp to Task Lists (without Now Formula)
00:07:44
Make your Custom Functions Like Native Functions | Custom Function Autocomplete
00:17:58
Create a Changelog Between 2 Cells Custom Function | To learn Double For Loop
00:23:26
New Syntax for WhatChanged Formula in Google Script
00:07:14
How to Record Macros
00:06:20
2 Ways to Delete Lines Quickly (CAREFUL, it's a script!)
00:09:53
Deep Inside Dark Habits Google Script
00:18:54
How to Trigger Macros Daily
00:06:58
5 Ways to Create Coupon Codes | Create UUIDs
Create a Radio Button From Checkboxes Using Google Apps Script
00:15:01