How to Prevent Texts from Spilling Over to Next Cell in Excel

Row and column have its own height and width by default when launching excel and open a worksheet. If we enter a long string into a single cell without adjust cell width, the string will spill over the width and occupy part position of next cell. See screenshot below.

Prevent Texts from Spilling Over 1

This behavior is very annoying, so we need to prevent strings from spilling over to the adjacent cell. This article will provide you some simple ways to stop strings spill over. You can do operations refer to below steps.

Method 1: Prevent Texts from Spilling Over by Wrap Text


This method is the simplest way, but the row height will be adjusted after executing Wrap Text in excel. See below steps and final behavior, then you can check if this method suits for you.

See below long texts saved in A1 and A2.

Prevent Texts from Spilling Over 2

Step 1: Select A1 and A2, then click Home->Wrap Text.

Prevent Texts from Spilling Over 3

Step 2: Verify that texts are split into multiple lines in single cell A1 or A2. The height of row1 and row2 are adjusted automatically due to last operation.

Prevent Texts from Spilling Over 4

Method 2: Prevent Texts from Spilling Over by Format Cells Settings


As above method adjusts the row height improperly, so we need another better way to prevent texts spilling over the default width and keep the height doesn’t change at the same time.

Step 1: Select A1 and A2, right click to load menu, select Format Cells from menu.

Prevent Texts from Spilling Over 5

x
How to Show All Named Ranges in Excel

Step 2: In Format Cells window, enter Alignment tab, then select Fill in Horizontal dropdown list under Text alignment. Then click OK.

Prevent Texts from Spilling Over 6

Step 3: Verify that texts are displayed properly in its own cell and will not spill over to next cell.

Prevent Texts from Spilling Over 8

Notes:

  1. This operation is only applied to selected cells. If you enter long texts in A3, the texts will still spill over to next cell again.
  2. If you want to prevent texts in a column from spilling over to adjacent columns, you can select the whole column and set Fill in horizontal dropdown list.

 

 

Related Posts

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

VBA Macro For VLOOKUP From Another Sheet
vba macro for vlookup from another sheet1

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

If Cell Equals Certain Text String
If cell equals certain text_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if cell equals a certain text string like “Win”, you ...

If Cell Contains Either Text1 or Text2
If cell contains text1 or text2_1

IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to see if cell contains certain substring1 like “abc” or substring2 like “def”, and returns true ...

If Cell Contains Certain Text OR Equals Certain Text

IF cell equals certain text IF function is frequently used in Excel worksheet to return “true value” or “false value” based on the logical test result. If you want to test values to see if they equal certain text like ...

VLOOKUP From Another Sheet Not Working
vlookup from another sheet not working3

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

If Cell Begins with One of Three Supplied Characters
If Cell Begins with One of Three Supplied Characters

If you want to test values to see if they begin with some given specific characters like “x”, ”y”, or “z”, you can create a formula with COUNTIF and SUM functions to return results. EXAMPLE You can see “TRUE” or ...

Sidebar