Sub topic 11
Alignment, Text Wrapping, and Overflow
This chapter covers how Google Sheets positions content inside a cell and what happens when the content is wider than the cell. It assumes you can select cells and ranges, enter values, and know that Sheets treats text and numbers differently (see the earlier chapters on data types and text formatting). Everything here changes how a value is displayed. None of it changes the stored value.
Horizontal alignment and the default rules
Horizontal alignment controls where content sits between the left and right edges of a cell. Sheets offers three settings: left, center, and right.
If you apply no alignment, Sheets chooses one based on the detected data type:
| Content | Default alignment |
|---|---|
| Text | Left |
| Numbers, dates, times, currency | Right |
| Booleans (TRUE/FALSE) | Center |
| Errors such as #DIV/0! | Left |
These defaults are a useful diagnostic. If you type a number and it hugs the left edge, Sheets probably stored it as text, often because of a stray apostrophe or a leading space. If a date sits on the left, it was not recognized as a date.
Once you choose an alignment explicitly, it overrides the default. Applying left alignment to a number does not turn it into text. Only the display moves.
To set alignment, select the cells and use the toolbar buttons or the menu Format > Alignment. The keyboard shortcuts are Ctrl+Shift+L (left), Ctrl+Shift+E (center), and Ctrl+Shift+R (right). On a Mac, use Cmd instead of Ctrl.
Alignment of numbers in a column
Right alignment is the right choice for numbers because it lines up the digits. Place the ones digit under the ones digit, and a reader can compare magnitudes at a glance. Centering a column of numbers with different lengths breaks that alignment. A good habit is to align headers the same way as the data beneath them: right-aligned numeric columns get right-aligned headers.
Vertical alignment
Vertical alignment controls where content sits between the top and bottom edges. The options are top, middle, and bottom. The default is bottom.
Vertical alignment only matters when a row is taller than its content. That happens when you resize a row manually or when wrapped text in a neighboring cell makes the row grow. In a row where one cell holds three lines of wrapped text, the other cells default to bottom alignment. Their values drop to the last line, which can look like a misaligned table. Setting the whole row to top or middle alignment fixes this.
Use Format > Alignment and pick the vertical option, or use the toolbar's vertical alignment button.
Text wrapping: three modes
When text is longer than the cell is wide, you choose how Sheets handles it. The setting is in Format > Wrapping or in the toolbar's wrapping button. There are three modes.
| Mode | Behavior | Row height |
|---|---|---|
| Overflow | Text spills into empty neighboring cells | Unchanged |
| Wrap | Text breaks onto additional lines inside the cell | Grows to fit |
| Clip | Text is cut off at the cell edge | Unchanged |
Overflow is the default for text. Wrap and clip are explicit choices.
Overflow
With overflow, a long text value spills to the right if the cells to its right are empty. The spill is only visual. The text still belongs to the original cell, and the neighbors remain empty.
Overflow stops as soon as it meets a non-empty cell. The text is then cut off at the boundary, as if clipped. If you later fill the neighbor, text you could previously read becomes hidden. The data is still intact, and you can see it by selecting the cell and reading the formula bar.
Overflow direction follows alignment. Left-aligned text spills to the right. Right-aligned text spills to the left. Centered text spills in both directions, and needs empty cells on both sides.
Numbers do not overflow. If a number is too wide for its cell, Sheets shows it differently: it may round decimals to fit, or switch to scientific notation. For very wide values, the cell can display a series of # or ### characters. Widening the column fixes this. The stored number is never altered.
Wrap
Wrapping breaks text at spaces so it stays inside the column width. The row grows taller, unless you have set a fixed row height. Wrapping is the best choice for notes, descriptions, and addresses, where you want the entire value visible without widening the column.
You can force a line break inside a cell yourself. Press Ctrl+Enter (Cmd+Enter on a Mac) while editing the cell. This inserts a newline character. In a formula, the newline is CHAR(10). A manual line break only looks like a break if wrapping is turned on. With overflow or clip, the text appears on a single line.
A long string with no spaces, such as a URL, cannot break at a space. Sheets breaks it at the cell edge instead, which can look awkward. Widening the column or using clip usually reads better.
Clip
Clipping cuts the text at the cell border, even when the neighbor is empty. It keeps rows a uniform height and prevents spilling over other content. Use it for dense tables where you can still read the full value in the formula bar.
Row height and wrapped text
Rows resize automatically to fit wrapped text, unless you have set the height manually. After you drag a row border or set an exact height, the row stops auto-fitting. If wrapped text is then cut off, right-click the row header, choose Resize row, and select Fit to data.
Changing a column width also changes where wrapped text breaks, so the row height may change. Format widths first, and check the heights afterward.
Text rotation
Sheets can also rotate text, through Format > Rotation. Options include tilt up, tilt down, stack vertically, rotate up, and rotate down. Rotated headers allow narrow columns with long labels, such as a column of yes/no values under a long heading. Rotation changes display only, and it works best combined with center alignment.
Merging cells and its trade-offs
Format > Merge cells combines a selected range into a single cell, so centered text can span several columns. Merging is common for titles above a table. It has costs. Merged cells interfere with sorting, filtering, and range selection, and they complicate copying. Only the top-left value survives a merge. Values in the other cells are discarded.
An alternative for titles is to type the title in the first cell and let it overflow across the empty cells to its right. This gives the same visual result without merging. Another option is Center across selection behavior through overflow with left alignment, which avoids structural changes.
Putting it together: a worked example
Suppose you have a task list with a short ID in column A, a long description in column B, and an amount in column C. Set the formatting as follows.
- Select column B and choose Format > Wrapping > Wrap.
- Set column B's width to a readable value by dragging its right border.
- Select the whole data range and set vertical alignment to top, so ID and amount line up with the first line of the description.
- Select column C and right-align it, including its header.
- Select the header row and center-align the labels, or match each header to its column.
The following diagram shows how Sheets decides what to do with text that is wider than its cell.
Common errors
- Numbers that look left-aligned. The value is text. Check for a leading apostrophe or spaces, and convert it before using it in calculations.
- Text that vanishes after you fill the next column. Overflow stopped at the new content. Select the cell to confirm the data is intact, then wrap or widen the column.
- Row height that will not adjust. A manual height is set. Use Resize row > Fit to data.
- Wrapped text with a manual break that shows on one line. Wrapping is set to overflow or clip. Switch to wrap.
- Data lost after merging. Only the top-left value is kept. Undo with Ctrl+Z, copy the other values elsewhere, and merge again if needed.
- Hash signs in a date or number cell. The column is too narrow. Widen it.
Exercise
A cell holds the number 4500, and it appears at the left edge of the cell. A colleague says you can fix it by choosing right alignment. Is that enough? What would you check first?
Show answer
Right alignment would change the display, but the left position is a hint that the value is probably text, not a number. Check the formula bar for a leading apostrophe or spaces, and test with =ISNUMBER(A1). If it returns FALSE, convert the value to a number, for example by retyping it or using VALUE. Then alignment is right by default, and sums and comparisons work properly.
Exercise
Cell A1 contains a long sentence set to overflow. You then type "x" in B1. What happens to the text in A1, and how can you make the full sentence visible again without deleting B1?
Show answer
The overflow is cut off at the boundary of B1, but the data in A1 is unchanged. Set A1 to wrap (Format > Wrapping > Wrap) so the sentence breaks onto multiple lines inside A1, and widen the column if needed. The row height will grow to fit unless it has a manual height.
Exercise
A row has a three-line wrapped description in column B. The ID in column A appears at the bottom of the row, far from the start of the description. Which setting fixes this, and why does it happen?
Show answer
Set vertical alignment to top for the row. Sheets aligns content to the bottom by default, so in a taller row the single-line ID sits next to the last line of the wrapped text.