Sheets Tip 194: Formula Challenge #6 💥


Hi friend,
​
Welcome to the Google Sheets Tips newsletter #194!

This is a special edition because I have a new formula challenge for you! It's been over a year since the last one, so it's time to dust off your thinking cap and see if you can solve this one.

Formula challenge #6 appears below this week's tip.

​Click here to see previous formula challenges.
​
​➜ News​
​
​I.
​
There's a new post on the website exploring People Chips, which let you add additional information and quick action buttons to email addresses in your Sheets.

​How To Create People Chips in Google Sheets

Also, if you're a ConvertKit customer (I use them for these emails), here's how to connect to their API with Apps Script and create an automated daily report:

​Automated ConvertKit Report In Google Sheets​

_______
​
​➜ Google Sheets Tip #194 and Formula Challenge #6: ​
​
Here is your Google Sheets tip, which you can think of as your Monday morning espresso, in spreadsheet form.

Use the MID function to return a segment of a string.

The MID function syntax is

=MID(string, start, extract_length)

Let's see an example:

​

Here the MID function extracts the word "Sheets" which starts at position 8 in the original string in cell A1, and has a length of 6 characters.

=MID(A1, 8, 6)

If you change the length to 3 you get "She" and if you change it to 1, you get the "S" only.

MID is useful in data cleaning exercises, for example when you want to split an invoice number into parts.

It works well when you want to apply the same split dimensions each time, although it can be paired with other text functions like LEFT, RIGHT and LEN to be more flexible.

Formula Challenge #6

Question: can you create a single formula to split a string into separate characters so that each character is in its own cell?

i.e. can you create a single formula in cell B1 that creates the output shown in this example:

​

BONUS: Formula Challenge #6 Extension

This takes the formula challenge one step further. Proceed if you dare!

Question: can you create a single formula to randomize the characters in a string?

i.e. can you create a single formula in cell B1 to create copy of the string with the letters in random order:

​

Hints

This week's tip might help you out, e.g. start with this:

=MID(A1, 1, 1)

and try changing the starting position value (the 2nd argument).

I also used this function and this function in my solution, but I'm sure there are other solutions too ;)

How To Enter

Just hit reply to this email with your formula suggestion. Easy!

I'll share the solution as next week's tip.

_______
​
If you enjoyed this newsletter, please forward it to a friend who might enjoy it.

Have a great week!

Cheers,
Ben

P.S. Just a panda having fun​

Google Sheets Tips

Get better at working with Google Sheets! Join 50,000 readers to get an actionable tip in your inbox every Monday.

Read more from Google Sheets Tips

Brought to you by: Hi Reader, Welcome (back) to the Google Sheets Tips newsletter, issue #392, your Monday morning espresso, in spreadsheet form! Greetings from the East Coast of the US, where we've been under an Extreme Heat Warning for the past few days, with temperatures at a sweltering 100°F (feels like 114°F with humidity 🥵.) This follows on from the heat wave in the UK a week ago (where I was visiting family) and another in Germany the week before that (where my wife and I traveled for...

Hi Reader, Welcome to the Google Sheets Tips newsletter #391, your Monday morning espresso, in spreadsheet form! (Sorry there was no newsletter last week. I was sick!) This week we're looking at a cool use case for Google Sheets that most folks have no idea about. Creating QR codes! With a few simple formulas you can create QR codes in your Sheets that you could use to track inventory, accept invitations, or even print out to use at an event. First, a housekeeping announcement: after today,...

Hi Reader, Welcome to the Google Sheets Tips newsletter #390, your Monday Tuesday* morning espresso, in spreadsheet form! * public holiday in the US yesterday. Speaking of coffee, I usually work from my local coffee shop twice a week. It makes for a nice change of scenery from home. And everytime I order the same thing: a regular cappuccino, no frills, no syrups, no fancy milks. I think it says a lot about my personality and stage in life. As a working parent, neck deep in the world of AI,...