Members-only tutorial

Watch the video and get the practice sheet with membership.

See membership options

How Can I Compare Two Tabs for Differences?

About this Tutorial

So in this video we're going to compare two tabs and differences. Basically, someone asked actually on AppSumo, someone asked how do I compare two sheets to know what the differences are? This is the answer.

Featured Formulas

Video Transcript

<div>00:01 Hello, welcome. So in this video we're going to compare two tabs and differences. Basically, someone asked actually on AppSumo Learn how AppSumo can help you find tools for your business. Opens in new tab , someone asked how do I compare two sheets to know what the differences are?<br>00:15 Now here's sort Discover how to sort your data effectively in Google Sheets. Opens in new tab of what you could potentially do, right? And you might be doing already, is if you have say, video titles, like here I'm, I'm just checking my YouTube video titles and I've changed a few titles, but I wanna know like, which titles did I change?<br>00:28 Or maybe I outsource this.

Anytime we do things like outsource blog posts writing editing outsource something, we might send some data Understand the different types of data you can work with. Opens in new tab , get data Understand the different types of data you can work with. Opens in new tab back, and then we're like, oh, what actually changed?<br>00:45 And so you might have two CSV Find out how to work with CSV files in Google Sheets. Opens in new tab files, you import Learn how to import data into your Google Sheets. Opens in new tab them into Google Sheets, you create two different tabs, sheet one and sheet two, and you're like, what are the differences?<br>00:54 Now look, if, if the differences are stark and very many, you want to go through those one by one, but like, look at this, these two sheets, you cannot tell the difference.<br>01:04 Well, you can probably tell if you're really looking hard.

The very first title is different. I've changed the numbers 1 million to literally the words 1 million.<br>01:13 So what else is different though? If only there are few changes? How can you tell the difference between sheet one and sheet two?<br>01:20 Now again, you might be thinking, I don't need to do this. I'm I don't have changes or somebody else highlights changes for me.<br>01:29 But in a way, you want to create an asynchronous environment sometimes with data Understand the different types of data you can work with. Opens in new tab , and you're gonna send data Understand the different types of data you can work with. Opens in new tab and you're gonna get data Understand the different types of data you can work with. Opens in new tab back.<br>01:37 And especially if you get outside of sheets, right?

If, if you have data Understand the different types of data you can work with. Opens in new tab inside of sheets, you can look at version history Explore how to track changes with version history. Opens in new tab .<br>01:45 I have another video here on Better Sheets about change logs of keeping logs as edits go. We can even have an on edit that says every time there's an edit log, that edit, which is pretty phenomenal, right?<br>01:59 But like in reality though, we're going to have some data Understand the different types of data you can work with. Opens in new tab that we send away and we get back.

Now in this case it's video titles, but in your case it might be stats custom statistics data Understand the different types of data you can work with. Opens in new tab that you get from someone and you maybe get one day and then ano another stat the next day.<br>02:21 And you want to know the differences between them. Again, this is really helpful if there's maybe a few changes and you're not going piece by piece.<br>02:30 So let's go through at least one of the simplest ways that I know how to do this. I would create a third sheet called compare.<br>02:37 Let's call it compare.

And literally in here we are going to have we're just gonna compare the two things, the two cells Get to know the basics of cells in Google Sheets. Opens in new tab on the, on two different sheets, the same cell on two different sheets.<br>02:53 And so we're gonna use like an if formula Understand the syntax used in Google Sheets formulas. Opens in new tab . The logical expression Learn about expressions and how to use them in formulas. Opens in new tab are gonna say sheet one exclamation, point A one is equal equals sheet two A one.<br>03:11 Let's see if it's true. We want to say same. If it's not true, we wanna say different.

For instance, so that says same.<br>03:24 So we already know, you know, we already picked out sheet one B two and sheet two B two are different.<br>03:32 So let's see if this works. And if we just com copy and paste. What's happening is that A one is changing to B one as we copy paste.<br>03:43 And so again, all this is same, same, same. We can copy paste there and different. So now we have exactly what's different, the exact cell that's different.<br>03:57 Are there any other cells Get to know the basics of cells in Google Sheets. Opens in new tab that are different? And we can look through this. Same, same, same, same, same difference.

See, we found a new one, B 42, B 42.<br>04:07 Could we actually have seen that B 42? There it is. What is the difference between these B 42 is everything different?<br>04:24 Oh no, sorry, B 41. Oh my god, I got that. B 40, create a business in one hour. B 41, create a business in one hour with the word one.<br>04:33 All right? See, we in a world of texts, we would've never figured that out.

Now why would we create an entire sheet that had same, same, same, same, same different, and why would we ever wanna like look through this, right?<br>04:47 We can copy everything else and see it's all same, but like this is pretty hard to look through, right? Even though it's a different word, right?<br>04:55 Literally the word different, we can spot it visually. Maybe there are other ways we can spot this differently.

We can definitely do something like where Discover how to use the query where clause in Sheets. Opens in new tab is it format Explore different formatting options for your data. Opens in new tab conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab , and we can change the format Explore different formatting options for your data. Opens in new tab .<br>05:13 Rule to text is text is exactly different and we can give it a red, maybe with a white there. And this pops up pretty well, right?<br>05:32 But you know, this is not that great, right? We actually do know the difference. We can see the difference here.<br>05:40 But we're still like looking through this. We wanna really look through our data Understand the different types of data you can work with. Opens in new tab . Could we potentially add the same conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab ?<br>05:49 But when it's B2 here, can we do it on sheet two or sheet one?

Let's see if we can do that.<br>05:56 So we gotta do format Explore different formatting options for your data. Opens in new tab conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab . We're going to say apply to range Understand how to apply formatting to a range of cells. Opens in new tab A one. Let's do A to D and we're going to try doing custom formula Understand the syntax used in Google Sheets formulas. Opens in new tab sheet.<br>06:18 No compare. A one Is Different. Now what's interesting is that when we use compare a one, right is equal to different.<br>06:41 That's what we want to find out. Is it equal to different on the other page? But this compare is not very good, so we need to use it.<br>06:50 It doesn't work actually. That's the thing we need to use indirect Discover how to use the INDIRECT function in Google Sheets. Opens in new tab .

We need to use equals indirect Discover how to use the INDIRECT function in Google Sheets. Opens in new tab and then use compare.<br>07:18 Okay? So we cannot use the indirect Discover how to use the INDIRECT function in Google Sheets. Opens in new tab . Only we we need to do is we need to compare, is the word different?<br>07:27 Is it equal to index Learn about the INDEX function and how to use it. Opens in new tab ? Then inside of that indirect Discover how to use the INDIRECT function in Google Sheets. Opens in new tab use in quotes the sheet that you're looking at and the rows and columns, then comma row A one, column b, A one, what is gonna happen is this.<br>07:45 A one in here, in this custom formula Understand the syntax used in Google Sheets formulas. Opens in new tab for this entire range Understand what a range is in Google Sheets. Opens in new tab is actually going to change.

If we had say, added dollar signs in front of A and one, it wouldn't work because it would stay a one as it goes through here through go through the conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab .<br>08:01 So I will actually put this on this and let's examine this whole thing. Now what's going on is let's do a little tag there.<br>08:13 What's going on is we, the result is that we want to highlight the different cells Get to know the basics of cells in Google Sheets. Opens in new tab . And so we're just comparing each cell between sheet one and sheet two, but we're doing that on the compare tab.<br>08:28 We've set ourselves up with everything we need.

And now we can actually change sheet one, sheet two to whatever we want.<br>08:35 Because the compare sheet is always gonna look at sheet one, sheet two with the same exact cells Get to know the basics of cells in Google Sheets. Opens in new tab and look at them and say, are these the same?<br>08:43 And it's gonna, if they're not the same, they're gonna say different. Again, we're doing this so that we don't have to look at this compare page.<br>08:51 We want to actually be able to conditional Learn how to apply conditional formatting to highlight data. Opens in new tab use conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab to show it on the data Understand the different types of data you can work with. Opens in new tab itself.

So here we have the exact two cells Get to know the basics of cells in Google Sheets. Opens in new tab that are different.<br>09:01 Now, does this change before I go too deep into conditional Learn how to apply conditional formatting to highlight data. Opens in new tab , the conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab that we got, let me show you that it changes.<br>09:10 So if we change this to 15 over here on she one, it changes automatically. It shows us the exact differences.<br>09:18 This is pretty cool. All right, let's go into how this conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab works a little bit more.

So first off, conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab custom formula Understand the syntax used in Google Sheets formulas. Opens in new tab must always start with an equal sign.<br>09:30 It's doesn't really mean equal, it means like this is gonna be a formula Understand the syntax used in Google Sheets formulas. Opens in new tab . In this particular case, it means it's gonna be a formula Understand the syntax used in Google Sheets formulas. Opens in new tab .<br>09:39 Then we're gonna use the different as literally just text.

So we wrap Find out how to wrap text in cells for better readability. Opens in new tab that in double quotes and then we say, well, what, what do we have to compare different two, we wanna compare it to the compare tab.<br>09:52 We wanna know on the compare tab is this particular cell that I'm on, this conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab that I'm formatting Explore different formatting options for your data. Opens in new tab , is this the one, what does it say on compare?<br>10:02 And if it says different, I want to highlight it. Okay?

So what we actually do is we use index Learn about the INDEX function and how to use it. Opens in new tab here, we're gonna use the index Learn about the INDEX function and how to use it. Opens in new tab formula Understand the syntax used in Google Sheets formulas. Opens in new tab .<br>10:10 Then when we want to look at another tab, we can't not use the indirect Discover how to use the INDIRECT function in Google Sheets. Opens in new tab , we have to use indirect Discover how to use the INDIRECT function in Google Sheets. Opens in new tab here.<br>10:19 And indirect Discover how to use the INDIRECT function in Google Sheets. Opens in new tab is sort Discover how to sort your data effectively in Google Sheets. Opens in new tab of a magical little formula Understand the syntax used in Google Sheets formulas. Opens in new tab that says go to the sheet and ta and, and sell and reference within my indirect.<br>10:31 So when we wanna reference another sheet we use indirect.

Sometimes when we're sort Discover how to sort your data effectively in Google Sheets. Opens in new tab of programmatically building out that we wanna look at another sheet in another which particular cell, and we wanna change that cell number Learn about number formatting options in Google Sheets. Opens in new tab or cell reference Understand how to use cell references in your formulas. Opens in new tab , we want to keep the sheet.<br>10:47 In other videos I've talked about the indirect Discover how to use the INDIRECT function in Google Sheets. Opens in new tab . And actually you can go and search those and see how indirect Discover how to use the INDIRECT function in Google Sheets. Opens in new tab works.<br>10:52 Many ways it's a bit magical and bit sort Discover how to sort your data effectively in Google Sheets. Opens in new tab of hand wavy here. But what we're doing is we're building the, the name compare sheet A to D.<br>11:03 Now if you want more than the D column, just go in here and change D to whatever you want.

Z we could do it, we can say Z.<br>11:12 And then within that index Learn about the INDEX function and how to use it. Opens in new tab , so the reference Explore different types of references in Google Sheets. Opens in new tab is the entire compare sheet. Then we need to get a row and a column.<br>11:20 And we've sort Discover how to sort your data effectively in Google Sheets. Opens in new tab of done a little bit of a trick here.

We do row and wrap Find out how to wrap text in cells for better readability. Opens in new tab that around a one column, A one.<br>11:26 And the trick is that conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab , when you go up, when you apply it to a range Understand what a range is in Google Sheets. Opens in new tab , anytime in the custom formula Understand the syntax used in Google Sheets formulas. Opens in new tab that you have a reference Explore different types of references in Google Sheets. Opens in new tab to a cell, it will change re that reference Explore different types of references in Google Sheets. Opens in new tab .<br>11:42 So if I put a one in here and the, and the range Understand what a range is in Google Sheets. Opens in new tab is A starts at a one, when it applies the range Understand what a range is in Google Sheets. Opens in new tab to say B two, it will change the cell here to B two.<br>11:53 Again, just as I mentioned earlier in this video, you can put dollar signs in front of the A and the one and it locks it in.<br>12:00 So it'll apply the A one to everything.

But in this case, we actually do want it to change. We want the change because we don't, we, we want to compare to the cell on compare &lt;laugh&gt;, maybe I should have used a different word for compare the compare sheet, maybe a different title.<br>12:20 Okay, so now we have a, a sheet here, an entire work file that allows us to import Learn how to import data into your Google Sheets. Opens in new tab two pieces of data Understand the different types of data you can work with. Opens in new tab .<br>12:31 It compares them on the third tab and also the conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab will allow us to like see that data Understand the different types of data you can work with. Opens in new tab on the sheet itself.<br>12:40 So again, I just wanna show you a couple changes if you do wanna change it.

So if you wanna do like a colon z, I would recommend going to this custom formula Understand the syntax used in Google Sheets formulas. Opens in new tab and changing a D to a z, a colon Z.<br>12:55 And that will allow you to get everything. And then we also want to go to compare, let's just for the sake of having it complete, we will have an entire 10,000.<br>13:07 Yeah, 1000 rows. 26. So it's 26,000. Comparisons here. Each one going to sell on sheet one, sheet two. Looking at them, are they different?<br>13:20 If they are different, it will show different.

If there is nothing in it, let's see what happens if there is nothing there, and we'll go back to our compare.<br>13:31 Everything's the same, same, same. And now let's look at let's just type in a one and bo it is different, right?<br>13:41 And if it's not different, right, it will not show up perfect. It shows up, it doesn't have the applied conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab .<br>13:50 They are the same, especially if this is probably even useful to find something like, yeah, hidden Explore different formatting options for your data. Opens in new tab spaces hidden Explore different formatting options for your data. Opens in new tab characters.

This is great for, so yeah, go grab the sheet if you want this sheet, if you wanna check out this conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab .<br>14:06 There it is. I put the conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab on here, conditional formatting Learn how to apply conditional formatting to highlight data. Opens in new tab available right here on this. I'll move it up to a one actually, and I'll use tiny sheets to delete all the rows and columns.<br>14:22 So this is only a one cell sheet. There you go. Can't go any different than this &lt;laugh&gt;. Let's just make this a little bit bigger so you can really see it.<br>14:32 There you go. Hope this was helpful to you. Bite.</div>