Sheets Tip 330: Multiple lines in a single cell


Brought to you by:


Hi Reader,

Welcome to the Google Sheets Tips newsletter #330, your Monday morning espresso, in spreadsheet form!

Where do these tips come from?

Often, they come from readers' questions that will be helpful to share. I'll also share compelling tips I find online (lately LinkedIn has been a good source). I've often found great tips in Excel groups, for example, that can be applied equally as well to Sheets.

And sometimes, I simply stumble across a tip in the course of my own work, such as this week. When I pasted a list of URLs into my Sheet, it put them all in a single cell. I had to separate them into their own cells. See how I did it below.


Brought to you by: ProjectionLab

Take a Break from Google Sheets

We get it. We love Sheets too. But spreadsheets have their limitations. When they couldn’t bring our financial plan to life, we built a tool that could. ProjectionLab combines beautiful visuals with real-time simulations to make financial planning intuitive, powerful, and fun.

Join thousands of spreadsheet lovers who use ProjectionLab to:

  • Visualize the future with interactive charts and plots that turn finances into insights.
  • Plan for and map out goals, like early retirement.
  • Test strategies and decisions using powerful scenario modeling.
  • Dive deep with Historical Backtesting, Monte Carlo Simulations, Sankey Cash-Flow Visualizations, detailed tax estimation, and more.

It’s everything Sheets can’t be.


➜ News

I.
​
The Apps Script OAuth consent screen is getting an update to become more granular. Users will be able to selectively grant or refuse access to each service the script requests.

​Read more >>​


➜ Sheets Tip #330: How to deal with multiple lines in a single cell?

I recently pasted the contents of my clipboard into my Sheet and instead of pasting across multiple rows, all the data was inside a single cell.

Here's an example:

Now, it's often possible to solve this by doing a PASTE-SPECIAL operation instead of a standard paste.

In a blank cell, right click to bring up the menu and then select:

Paste Special > Values only

Often, this will spread the data across multiple rows:

But, should you find yourself with multi-line data inside a single cell, then use this formula to split it out:

=SPLIT(A1,CHAR(10))

This outputs the data across columns.

Wrap it with a TRANSPOSE function to change to a single column with multiple rows:

=TRANSPOSE(SPLIT(A1,CHAR(10)))

In our Sheet, it looks like this:

N
i
c
e
!


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

Have a great week!

Cheers,
Ben

P.S. Maybe Google should add this?? 😂

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...