HomeHow To Wrap Text In Google SheetsAutomation & Apps ScriptHow To Wrap Text In Google Sheets

How To Wrap Text In Google Sheets

Knowing how to Wrap Text In Google Sheets ensures that long sentences, notes, and descriptions stay neatly visible inside their cells instead of getting cut off or spilling awkwardly across neighboring columns. Whether you prefer quick toolbar clicks, manual line breaks, custom keyboard shortcuts, or automated Google Apps Script workflows, mastering text wrapping keeps your spreadsheets readable, organized, and presentation-ready.

Method 1: Via Format Menu

Using the top navigation bar is the most direct way to apply wrapping rules to any selected range:

  • Highlight the cell or group of cells you want to format.
  • Click Format in the top menu bar, hover over Wrapping, and select Wrap.
  • Alongside Wrap, you will also see Overflow (lets text spill into empty adjacent cells on a single line) and Clip (cuts off text cleanly at the cell border).
Wrap Text In Google Sheets Format Menu

Method 2: Wrap Text Via Toolbar

Select a range of data and then use the wrap text button in the toolbar:

Wrap Text Toolbar in Google Sheets

As with the Format menu, you’ll find the Clip and Overflow options next to the wrap text option.

After wrapping, your data will look like this:

Data After Wrap Text

How To Wrap Text In Google Sheets Manually

When you want exact control over where a sentence breaks inside a single cell—or want to format multi-line formulas cleanly—insert a manual line break:

  • Double-click inside the cell (or click into the formula bar) at the exact spot you want a new line.
  • Press Ctrl + Enter (or Alt + Enter / Cmd + Return depending on your operating system) to drop the remaining text onto a fresh line within the same cell.
Manually Wrap Text in Google Sheets

How To Create A Shortcut Key To Wrap Text

Although Google Sheets does not include a built-in native shortcut for wrapping text, you can create your own in seconds using a custom macro:

  • Select a sample cell and go to Extensions > Macros > Record macro.
  • Choose Use relative references at the bottom of the recording card so your shortcut works on any cell you highlight later.
  • Apply Format > Wrapping > Wrap, click Save, name your macro, and assign a number (such as 1) to trigger it anytime with Ctrl + Alt + Shift + 1 on Windows/Chromebook or Cmd + Option + Shift + 1 on Mac.

Pro Tip: Custom macros only live inside the specific spreadsheet where you record them—record one in your main project template so every copy inherits your shortcut automatically.

Here’s how to create a macro to wrap text in Google Sheets:

Create Wrap Text Shortcut Key In Google Sheets

Now you can use this shortcut key to wrap text in any ranges you select.

Note macros only work in the Google Sheet you create them in, so it’s only worth doing if you envisage wrapping text often.

How To Wrap Text In Google Sheets Using Apps Script

Google Apps Script is a scripting language for extending the functionality of Google Sheets (and other Google Workspace tools).

There are four get methods and four set methods available in Apps Script that let you confirm whether the text is wrapped or not, and turn it on or off.

getWrap and setWrap

getWrap() tells you whether the text in the cell is wrapped.

setWrap() sets the cell wrap for a single cell.

For example, this code will wrap text in cell A1:

1234functionwrapTest() {  const sheet = SpreadsheetApp.getActiveSheet();  sheet.getRange("A1").setWrap(true);}

getWraps and setWraps

getWraps() tells you whether the cells in a range are wrapped or not.

setWraps() applies a rectangular grid of word wrap policies to a range.

We need to use the double-array notation to denote the 2-D structure of the range.

The outer array […] denotes the range and each inner […] creates a row. Finally, the commas separate the columns within the row.

So [[true,false,true,false]] will work for a single row with 4 columns, for example A1:D1, as in this example:

12345functionwrapTest() {  const sheet = SpreadsheetApp.getActiveSheet();  const wraps = [[true,false,true,false]];  sheet.getRange("A1:D1").setWraps(wraps);}

Whereas this [[true],[false],[true],[false]] denotes a single column and 4 rows, for example A1:A4, as in this example:

123456789functionwrapTest() {  const sheet = SpreadsheetApp.getActiveSheet();  const wraps = [    [true],    [false],    [true],    [false]];  sheet.getRange("A1:A4").setWraps(wraps);}

getWrapStrategy and setWrapStrategy

getWrapStrategy() returns the text wrapping strategy of the top-left cell of the range.

setWrapStrategy() sets the wrap rules for the cells in the range.

This code:

1234functionwrapTest() {  const sheet = SpreadsheetApp.getActiveSheet();  Logger.log(sheet.getActiveCell().getWrapStrategy());}

outputs the wrapping strategy of the active cell in the logs.

The result is either WRAP, OVERFLOW, or CLIP, known as the enumeration of the wrapping strategy.

getWrapStrategies and setWrapStrategies

getWrapStrategies() returns the text wrapping strategies of cells in a range.

setWrapStrategies() sets a rectangular grid of wrap strategies for a range.

For example, this code sets A1 to be clipped, A2 to be wrapped, A3 to be clipped, and A4 to overflow:

01020304050607080910functionwrapTest() {  const sheet = SpreadsheetApp.getActiveSheet();  const wraps = [    [SpreadsheetApp.WrapStrategy.CLIP],    [SpreadsheetApp.WrapStrategy.WRAP],    [SpreadsheetApp.WrapStrategy.CLIP],    [SpreadsheetApp.WrapStrategy.OVERFLOW]  ]  sheet.getRange("A1:A4").setWrapStrategies(wraps);}

And there you have it!

Lots of different methods to wrap text in Google Sheets.

Also Read : GETPIVOTDATA Function in Google Sheets: How To Extract Data From Pivot Tables

Leave a Reply

Your email address will not be published. Required fields are marked *