How to Wrap Text in Google Sheets

Last Modified: February 16, 2024 - 7 min read

Kathryn Rossi

If you want to learn how to wrap text in Google Sheets, this guide is for you.

While you can fit a significant amount of content in a spreadsheet cell, a long text string can sometimes overflow into the adjacent cell.

This disrupts readability and comprehensibility, in addition to just making the spreadsheet look unclean.

So what’s the solution? You need to wrap the text.

Read this blog to learn all the different ways you can wrap text in Google Sheets, based on examples and step-by-step walkthroughs. Or grab some relevant spreadsheet templates to see wrapping in action yourself.

Video Walkthrough: How to Wrap Text in Google Sheets

How the Wrap Text Option in Google Sheets Works

When you activate the wrap text option, Google Sheets will fit the text entirely within the confines of the cell.

If the text reaches the end of the cell, any additional text will appear at the front of the cell on the next line.

Google Sheets automatically adjusts the cell’s height to accommodate this. You can easily toggle the text wrap option on and off.

Wrapped text makes your spreadsheets more organized and readable. This, in turn, allows for faster insights and analysis.

How to Wrap Text in Google Sheets: Top 6 Methods

Below, you will find the top methods for wrapping text in Google Sheets, including how to perform each one.

Method 1: Format Menu

Before diving into the first method, let’s obtain a sample dataset to work off of.

Let’s use Coefficient to import a HubSpot dataset into Google Sheets. Read our blog post on how to connect HubSpot to Google Sheets for a full walkthrough.

Untitled

And voila — we have our HubSpot dataset in Google Sheets. As you can see, column H contains text that overflows into column I.

Untitled

Now let’s wrap the text in this column using the Format Menu. Start by selecting the cells you want to wrap.

For this example, let’s select the cells in column H below the Meeting name header.

Untitled

On the top menu of Google Sheets, select Format -> Wrapping from the dropdown list, then Wrap on the sub-menu.

Untitled

Google Sheets will instantly wrap the text in your selected cells. The result will look like this:

Untitled

It’s that simple. But there are alternative ways to wrap text in Google Sheets as well. Here’s a rundown of them.

Method 2: Google Sheets Toolbar

In Google Sheets, you can also access the text wrapping option via the toolbar below the top menu.

Let’s select the cell range we want to apply wrapped text to. Then click on the text wrapping icon on the toolbar.

Untitled

Select wrap – the middle option — from the dropdown menu. And there you have it – the cells are wrapped.

Untitled

Google Sheets automatically adjusts the row and column sizes to fit the text within each cell. The spreadsheet looks a lot cleaner now.

Method 3: Keyboard Shortcut

Google Sheets automatically wraps text based on the column width. However, you can also wrap specific parts of the text by using a manual keyboard shortcut.

Here’s how to set the line break manually when you wrap text:

  1. Select the cell where you want to insert the line break.
  2. Place the cursor where you want to insert your line break.
  3. Hold the ALT key and press Enter (ALT+Enter).

The ALT+Enter keyboard shortcut inserts a line break. This will place the text in separate lines before and after the break.

It’s a manual process, but the method works particularly well if you need to wrap text in specific locations.

Method 4: Create a Keyboard Shortcut to Wrap Text Using Macros

Google Sheets allows you to use macros to create a custom shortcut for wrapping text. Here’s how to do it.

First, select the cells you want to wrap. Navigate to Extensions on the top menu and select Macros > Record macro.

Untitled

Select Use relative reference and wrap the text using your preferred method. Click Save to record the action.

Untitled

Name your macro, assign a shortcut key number (zero in this example), and click Save.

Untitled

If you’re using Mac, the shortcut key will be ⌘ + ⌥ + Shift + (your preferred number). Now you can use this custom shortcut key to wrap text in your selected cells.

Important note: macros only work in the Google spreadsheet where they were created.  

spreadsheet ai
Free AI-Powered Tools Right Within Your Spreadsheet

Supercharge your spreadsheets with GPT-powered AI tools for building formulas, charts, pivots, SQL and more. Simple prompts for automatic generation.

If you know how to code, you can customize the macros script even further. To edit the macros script, navigate to Extensions > Macros, and click Manage macros.

Untitled

Click on the three vertical dots icon and select Edit script.

Untitled

This will take you to Google Apps Script. Click macros.gs under Files and edit the code as you prefer.

Untitled

If you need to create a unique shortcut for wrapping text, macros might be a good option for you.

Method 6: Google Apps Script

Google Apps Script is a cloud-based JavaScript platform that allows you to extend and automate the functionality of Google products, including Google Sheets.

Here’s an overview of the Apps Script commands you can use to wrap text in Google Sheets.

  • getWrap() determines if the text within a cell is wrapped.
  • setWrap() sets the cell wrap for an individual cell.

For instance, the code below wraps the text in cell H3:

Untitled
  • getWraps() ascertains if the cells within a range are wrapped.
  • setWraps() imposes wrapped text across a rectangular grid of cells.
  • getWrapStrategy() returns the text-wrapping strategy of the top-left cell specified.
  • setWrapStrategy() sets the text-wrap strategy of a cell range.
  • getWrapStrategies() returns the text-wrapping strategies of a given cell range.
  • setWrapStrategies() institutes the wrap strategies for a rectangular range of cells

For instance, the code below sets H1 to be clipped, H2 to be wrapped, H3 to be clipped, and H4 to overflow.

Untitled

And that’s how to wrap text in Google Sheets using Apps Script.

Leverage AI to Build Your Google Sheets Formulas, Pivots, and Charts

Looking to speed up your workflows in Google Sheets? Never want to search for another tutorial again? You can use Coefficient’s free GPT Copilot to automatically create the Google Sheets formulas, pivots, charts, and more.

First, you’ll need to install the free Google Sheets Extension. You can get started with GPT Copilot here.

After you submit your email, follow along, and accept the prompts to install. Once the installation is finished, navigate to Extensions on the Google Sheets menu. Coefficient will be available as an add-on.

Now launch the app. Coefficient will run on the sidebar of your Google Sheet. Select GPT Copilot on the Coefficient sidebar.

 use the Coefficient GPT Copilot’s Formula builder to calculate the number of comments per post

Then click Formula Builder.

select formula builder

Type a description of a formula into the text box. In this example, let’s sort 20 dates starting with the most recent.

Simply type: Sort dates in column A in sheet9 by most recent date.

Then press ‘Build’. Formula Builder will automatically generate your sort formula.

And, it’s that easy! Simply, place the formula in the desired cell.

Wrap Text in Google Sheets for a Cleaner Spreadsheet

Text wrapping isn’t the most advanced functionality in Google Sheets, but it’s critical for making cells easier to read and understand. Follow this guide to wrap long-string text in Google Sheets quickly and efficiently.

And now you can use Coefficient to supplement your pristine spreadsheet with AI builders and real-time data from your business systems. Try Coefficient for free to pull your mission-critical data into your spreadsheets easily.

Sync Live Data into Your Spreadsheet

Connect Google Sheets or Excel to your business systems, import your data, and set it on a refresh schedule.

Try the Spreadsheet Automation Tool Over 350,000 Professionals are Raving About

Tired of spending endless hours manually pushing and pulling data into Google Sheets? Say goodbye to repetitive tasks and hello to efficiency with Coefficient, the leading spreadsheet automation tool trusted by over 350,000 professionals worldwide.

Sync data from your CRM, database, ads platforms, and more into Google Sheets in just a few clicks. Set it on a refresh schedule. And, use AI to write formulas and SQL, or build charts and pivots.

Kathryn Rossi Product Specialist
Kathryn is a total spreadsheet ninja. She has her analyst and consulting experience in Oil & Gas to thank for that. Whether you need her to combine data from multiple sources into a destination like Notion or Google Sheets for easy consumption and analysis or need her to build a dashboard for building operations, she can build the perfect spreadsheet for it.
350,000+ happy users
Wait, there's more!
Connect any system to Google Sheets in just seconds.
Get Started Free

Trusted By Over 20,000 Companies