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
Add a QA check to prompts to make them more accurate

Hi Reader, Welcome to the Future Proof newsletter, your Monday morning espresso, in AI form! (Formerly the Google Sheets Tips newsletter.) One of the stories that jumped out to me in the past week came from an interview with a tearful Cornell mathematics professor, asking "what's the point?" when AI surpasses human ability and steals the meaning (and joy) from mathematical research. (Which is a calling, not just a job to many.) One line stuck with me, and I'm paraphrasing here, but basically,...

Add custom Gemini instructions in sidebar of Google Sheets

Hi Reader, Welcome to the Future Proof newsletter issue 5, your Monday morning espresso, in AI form! (Formerly the Google Sheets Tips newsletter.) Lots of Gemini and Google Workspace news to share today and a tip on custom instructions. Find it all below, but first a little anecdote from my weekend. Kids say the funniest things. My 9-year-old declared over the weekend that he was going to build his own AI company and call his AI tool "Psycho"! I laughed and told him I loved the name. I was...

Output Google Doc as markdown file

Hi Reader, Welcome to Future Proof #4 (formerly the Google Sheets Tips newsletter), your Monday morning espresso, in AI form! My son and I had some fun 3-D printing over the weekend. I printed a rugged case to hold my Field Notes journals (see the finished result at the end of this email). The print run just beginning. It's impressive to watch something grow from nothing, although since the full print took around 3 hours I didn't watch the whole thing ;) And now, perhaps more than ever...