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 #354, your Monday morning espresso, in spreadsheet form! In last week's newsletter we compared wide and tall data, and what the pros and cons of each data "shape" were. Today, I want to show you how to move from one format to the other. How to transform tall data into wide data and vice versa. Going in one direction is easy. Going back, in the other direction, is less so. Find out which way round below! ➜ News I. It's...
Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #353, your Monday morning espresso, in spreadsheet form! Today we're looking at the shape of data. It's foundational concept that underpins pivot tables and charts in Google Sheets. Once you understand the difference between wide data (for charts) and tall data (for pivot tables), you'll be off to the races! This week is all about the pros and cons of each data shape. Next week, I'll show you how to use formulas and...
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...