Brought to you by:
Welcome to the Google Sheets Tips newsletter #352, your Monday morning espresso, in spreadsheet form! If you're a parent, then you've undoubtedly watched a lifetime's worth of Disney movies. You can appreciate the genius storytelling, rich characters and beautiful visuals. (But I'm sure you'd also be content to watch a film once, not 10 times!) Anyway, there's a scene in the Disney film Ratatouille where Remy bites into a strawberry and a piece of cheese at the same time. Fireworks go off. And Remy realizes that the two ingredients combine to create a wonderful new flavor. A whole-is-greater-than-the-sum-of-the-parts moment. Functions in Google Sheets can be like that too. Great alone, but even better, and more powerful, when combined together. In today's newsletter, we're going to combine CHOOSECOLS (which we featured last week) with the versatile SEQUENCE function. Check it out below. ➜ NewsI. II. Gemini in Google Sheets can now create editable charts! ➜ Sheets Tip #352: CHOOSECOLS + SEQUENCE = 🤩Last week, we looked at CHOOSECOLS and saw how you can use positive and negative integers to select columns from the left or right side of ranges. Today, I want to show you another tip for using CHOOSECOLS. Suppose we have a huge dataset, with hundreds of columns. And we want to select the first 20 columns. Or we want to select 10 columns in the middle, starting from the 11th column. We can nest the versatile SEQUENCE function inside CHOOSECOLS, to save writing out the column numbers by hand. For example, =SEQUENCE(20) generates a list of numbers from 1 to 20, i.e. 1, 2, 3, 4, 5, etc. Whereas, =SEQUENCE(10,1,11) generates a list of 10 numbers starting from 11, i.e. 11, 12, 13, 14, etc. We can nest SEQUENCE functions like these inside CHOOSECOLS, instead of writing the column numbers individually. For example, =CHOOSECOLS( A1:BZ500 , SEQUENCE(20) ) will select the first 20 columns. It's a shorthand equivalent to writing this: =CHOOSECOLS( A1:BZ500 , 1, 2, 3, 4, 5, ... , 20) Best of all, we can mix-and-match last week's tip and this week's tip to have complete control over the columns we want to select. For example, =CHOOSECOLS( A1:BZ500, 1, SEQUENCE(10,1,11), -1 ) selects the first column, columns 11 to 20, and the last column. Some functions are better together! If you enjoyed this newsletter, please forward it to a friend who might enjoy it. Have a great week! Cheers, |
Get better at working with Google Sheets! Join 50,000 readers to get an actionable tip in your inbox every Monday.
Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #351, your Monday morning espresso, in spreadsheet form! Thankfully, I'm fully recovered from the pneumonia I had last month. Sadly, we had to cancel our trip to Europe to see my family. But, the silver lining was an unexpected week at home with no agenda. So we stained the back deck, cleared out the garage, and built some raised beds in the garden. My younger self would have spent the week wallowing, annoyed at the...
Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #350, your Monday morning espresso, in spreadsheet form! I'm happy to report that I'm feeling a lot better now than I did this time last week. Thanks to modern medicine and plenty of rest, I'm well on my way back to normal (whatever that is these days!). Thanks to the many of you who sent well wishes, it was very much appreciated 🙏. ➜ News I.Google are adding a new setting to Google Forms to allow form responders to...
Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #349, your Monday morning espresso, in spreadsheet form! Last week was a total bust. I started going downhill on Sunday. Then, I was sick in bed on Monday and Tuesday. On Wednesday night, my wife took me to ER, where I was diagnosed with pneumonia. It's been a rough few days but I'm feeling better now and recovering. I still have a way to go but at least I'm heading in the right direction. I hope to get all systems up...