Members-only tutorial

Watch the video and get the practice sheet with membership.

See membership options

Replace 1,000 Formulas Instantly

About this Tutorial

Learn a cool trick you can do with the ArrayFormula. If you don't know what the ArrayFormula does, I show you how to use it in the first few minutes of this video.  Then show you how to use it better.

Featured Formulas

Video Transcript

<div>0:00 Hey, so you're trying to sort Learn how to sort your data effectively in Google Sheets. Opens in new tab of do a formula Understand the syntax rules for writing formulas in Sheets. Opens in new tab down a thousand rows. Like, for instance, I have a thousand names here, a thousand and one rows, including the header Discover how to manage headers in your spreadsheets. Opens in new tab .<br>0:09 And I want to add a message. It's just going to be like, hi, and then their name here.

How are you now?<br>0:20 If I wanted to do that, I might do something like this equals Hi Get a space do the ampersand a2 ampersand and then How I'll put a comma, how are you?<br>0:45 And there, I can even auto fill Find out how to use autofill to speed up data entry. Opens in new tab that right away and I can see that there's a formula Understand the syntax rules for writing formulas in Sheets. Opens in new tab in every single one of these rows.<br>0:54 But I don't really want a formula Understand the syntax rules for writing formulas in Sheets. Opens in new tab here, I want the actual data Explore ways to manage and manipulate data in Sheets. Opens in new tab . And when I, if I, move it or edit it, I want to be able to edit this at one time.<br>1:04 I don't have to copy and paste it all over again.

So what I can do is I'm going to delete all of those autofilled and go to it at the front.<br>1:13 I'm going to wrap Learn how to wrap text for better readability in cells. Opens in new tab this in array formula Master the array formula to simplify your spreadsheet tasks. Opens in new tab . Array formula Master the array formula to simplify your spreadsheet tasks. Opens in new tab , all caps. And we're going to, I'm going to put it in parentheses and I'm going to hit enter.<br>1:23 Still going to get this autofill Find out how to use autofill to speed up data entry. Opens in new tab , but I'm going to reject it. Now nothing happens. You see no change. The reason is, is we're still calling only A2.<br>1:33 With a ray formula Understand the syntax rules for writing formulas in Sheets. Opens in new tab we need to change this single cell reference Get to know the different types of cell references in Sheets. Opens in new tab to a range reference Understand how to use range references in your formulas. Opens in new tab . Or an array.

And so all I have to do is add colon a here, hit enter, hit enter, and now we have all of this data Explore ways to manage and manipulate data in Sheets. Opens in new tab here all around.<br>1:53 But there's a few problems with this, and I want to give you some tips on how to make this even better.<br>1:59 If we want to sort Learn how to sort your data effectively in Google Sheets. Opens in new tab this. Something's going to happen where Learn about using the query function with where clauses. Opens in new tab we only have this formula Understand the syntax rules for writing formulas in Sheets. Opens in new tab in one place. If we sort Learn how to sort your data effectively in Google Sheets. Opens in new tab it, let's say z to a Discover how to sort data from Z to A in your Sheets. Opens in new tab , you see it disappears.<br>2:11 Our array formula Master the array formula to simplify your spreadsheet tasks. Opens in new tab is down here. Well, that's no good. I want it to stay up here. So let's Command Z that.<br>2:22 And one workaround is we can do this sort Learn how to sort your data effectively in Google Sheets. Opens in new tab .

We can sort Learn how to sort your data effectively in Google Sheets. Opens in new tab the A colon B by the second column, actually A2 colon B.<br>2:34 And we can sort Learn how to sort your data effectively in Google Sheets. Opens in new tab it by the second column. We can do it ascending false. And there we go. We have a.<br>2:41 In alphabetical order now. But we're doing it somewhere else. This is pretty problematic. And for some reason, I actually like doing this.<br>2:50 I like having data Explore ways to manage and manipulate data in Sheets. Opens in new tab in one place and then morphing it in another place on another tab and stuff. But you might want to keep this array formula Master the array formula to simplify your spreadsheet tasks. Opens in new tab here, but not have it on the second row.<br>3:00 So we can do a little. Bit of a trick here.

We're going to do equal sign and we're going to add curly brackets here.<br>3:07 This curly brackets will be sort Learn how to sort your data effectively in Google Sheets. Opens in new tab of an array we're going to create inside here. And the first item we're going to create is called message, which is just in quotes the header Discover how to manage headers in your spreadsheets. Opens in new tab that we want.<br>3:21 I'm going to add a semicolon, and I'm going to hit Enter. It's going to have an error Troubleshoot common errors you might encounter in Sheets. Opens in new tab because we have nothing in this second spot after the semicolon.<br>3:30 But I'm going to take all of this formula Understand the syntax rules for writing formulas in Sheets. Opens in new tab . I'm going to command, actually, Command-C it.

So I'm just going to copy it.<br>3:39 I'm going to move it over here to the second. Argument Understand the arguments used in various functions in Sheets. Opens in new tab . So we have curly brackets, message, semicolon, and then a formula Understand the syntax rules for writing formulas in Sheets. Opens in new tab , this array formula Master the array formula to simplify your spreadsheet tasks. Opens in new tab .<br>3:49 I'm going to hit enter, and you notice we have exactly the same thing in, or at least we think, we can see this, in the B column and the C column.<br>3:59 That's because this array formula Master the array formula to simplify your spreadsheet tasks. Opens in new tab is sort Learn how to sort your data effectively in Google Sheets. Opens in new tab of, overflowing into the C2 and then it's actually giving us what we need.<br>4:08 So this is a lot more elegant because our formula Understand the syntax rules for writing formulas in Sheets. Opens in new tab is in the header Discover how to manage headers in your spreadsheets. Opens in new tab .

And so this might be something you want to do in your own sheets just to give it a little bit more elegance, a little bit more pristine.<br>4:22 Look here, we have all of this data Explore ways to manage and manipulate data in Sheets. Opens in new tab still here. We can edit, you know, a Mar Whitney, oh, maybe, which way, withy?<br>4:33 There we go, and it edits this text over here, right? The formula Understand the syntax rules for writing formulas in Sheets. Opens in new tab 's still working, great, and we have it in our header Discover how to manage headers in your spreadsheets. Opens in new tab .<br>4:40 So let's go back. Let's see if this works. I'm going to sort Learn how to sort your data effectively in Google Sheets. Opens in new tab this column and see we have our data Explore ways to manage and manipulate data in Sheets. Opens in new tab .<br>4:50 Now the data Explore ways to manage and manipulate data in Sheets. Opens in new tab in B column has disappeared, but our data Explore ways to manage and manipulate data in Sheets. Opens in new tab in C column is totally fine.

We still have this message at the top.<br>4:59 We can sort Learn how to sort your data effectively in Google Sheets. Opens in new tab it the other way, and there we go. We still have it. All of our data Explore ways to manage and manipulate data in Sheets. Opens in new tab so we can get rid of this B column and now we have a sortable column of data Explore ways to manage and manipulate data in Sheets. Opens in new tab here.<br>5:09 Pretty cool, pretty nifty. I thought that would be really fun to make your sheets better, make your better sheets better.<br>5:15 Make your sheets better. I hope this helps replace tons of formulas. Learn about the array formula Master the array formula to simplify your spreadsheet tasks. Opens in new tab and how to do this cool trick.<br>5:22 And the header Discover how to manage headers in your spreadsheets. Opens in new tab here with the curly brackets, and I send my colon. And thanks so much for watching.</div>