Brought to you by:
Welcome to the Google Sheets Tips newsletter #341, your Monday morning espresso, in spreadsheet form! Hope you're out enjoying the beautiful Spring weather 🌱🌼 if you're in the Northern Hemisphere. And Fall if you're down south! ➜ NewsI. Watch "Unlocking the Secrets of Lambda Functions" and grab the template for free here: II. ➜ Sheets Tip #341: A, B, C, D,E - Letter Lists with Clever FormulasIn this tip, we look at how to create lists of letters in our Sheets. Perhaps you have a series of tasks that you want to label as Step A, Step B, Step C, etc. How can we do that in Google Sheets? Firstly, let's try to do it as simply as possible with autofilll. Type A in row 1 and B in row 2. If you try to drag it down, this is what happens: Whoops! It just repeats A and B. Same thing happens if you do it with "Step A" and "Step B". However, we can use a special property of how letters are encoded (or stored) on the computer. Each letter is represented by an ASCII code. For example, letter A is represented by 065. Letter B by 066. And so on. Method 1: CODE + CHARThere are two handy functions in Google Sheets to convert letters to ASCII and back again. The CODE function: =CODE("A") gives the value 65. And the CHAR function =CHAR(65) gives the value "A". Knowing this, we can now create a formula to generate a list of letters for us. Start with "A" in cell A1. In cell A2, type this formula: =CHAR(CODE(A1)+1) Drag down to create the other letters! Here's an alternative method using the mighty SEQUENCE function. Method 2: SEQUENCE + CHARThis formula generates a list of numbers starting at 65: =SEQUENCE(5,1,65) Wrap this with a CHAR function and the ArrayFormula to convert these numbers to letters: =ArrayFormula(CHAR(SEQUENCE(5,1,65))) This can be easily modified to turn the list into a "Step" format, e.g. Step A, Step B, Step C, etc. Modify the formula to this: =ArrayFormula("Step "&CHAR(SEQUENCE(5,1,65))) If you enjoyed this newsletter, please forward it to a friend who might enjoy it. Have a great week! Cheers, P.S. Shape sorter tears 😭 |
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 #347, your Monday morning espresso, in spreadsheet form! Redwoods are incredible trees. Not only for their vast size, but also how long they've been alive. I was fortunate to bike through the redwoods in 2014 with my brother. Such magnificent trees! But why am I talking about redwoods? Well, I wanted a nice picture for the example in today's newsletter. Originally, I was going to use company logos, but then I thought...
Brought to you by: Hi Reader, Happy Monday! Welcome to the Google Sheets Tips newsletter #346, your Monday morning espresso, in spreadsheet form. This week's tip comes from a reader who emailed in with a question about Tables in Google Sheets. The answer was yet another benefit to using Tables that I hadn't previously noticed. Check it out below, after this week's news and sponsor message. ➜ News I.Staying with Tables... For developers, Tables are now part of the Google Sheets API...
Brought to you by: Hi Reader, Welcome to the Google Sheets Tips newsletter #345, your Monday morning espresso, in spreadsheet form! A couple of weeks ago I was looking over a Google Sheet with my wife (we help each other with business problems). My wife was extracting town names from a list of addresses and used the Smart Fill feature to automate it. She extracted the first two examples and then Smart Fill did the rest. "Woah, hang on a sec", I said "show me that again." I didn't realize that...