How to add space inside an Excel cell
You can add space inside an Excel cell in three ways: press Alt+Enter to create a line break, use the CONCATENATE or ampersand (&) function to join text with spaces, or manually type extra spaces between words. The method you choose depends on whether you want to move text to a new line within the same cell or simply add padding between existing content.
Line breaks are useful when you want to display multiple lines of text in a single cell without splitting the content across columns. Extra spaces help format data or align text visually. Both techniques keep related information together and make spreadsheets easier to read.
Key Takeaways
- Press Alt+Enter while typing or editing a cell to create a line break and move text to the next line within that same cell.
- You must enable text wrapping in the cell format for line breaks to display properly; without it, the text will hide below the visible area.
- Use formulas like =CONCATENATE(A1," ",B1) or =A1&" "&B1 to combine text from multiple cells with spaces between them.
- Manually typing extra spaces works for small adjustments, but formulas are faster and more reliable when you need consistent spacing across many rows.
Creating line breaks with Alt+Enter
The quickest way to add a line break inside a cell is to press Alt+Enter while you are typing or editing. This moves your cursor to a new line within the same cell instead of moving to the next cell down. For example, if you type "John" then press Alt+Enter, then type "Smith", both names appear stacked vertically in one cell.
After you add a line break, you must enable text wrapping so Excel displays all the lines. Select the cell, go to the Home tab, click the Wrap Text button in the Alignment group, and the cell will expand to show all content. Without wrapping enabled, the second line exists in the cell but stays hidden below the visible area.
This method works best for small amounts of text or when you are manually entering data. If you have many rows that need the same formatting, a formula approach is faster.
Using formulas to add spaces between text
When you need to combine text from different cells with spaces between them, use a formula instead of manual entry. The CONCATENATE function joins text together: =CONCATENATE(A1," ",B1) takes the content of cell A1, adds a space, then adds the content of B1. If A1 contains "John" and B1 contains "Smith", the result is "John Smith" in a new cell.
The ampersand (&) method does the same thing with shorter syntax: =A1&" "&B1. Both approaches produce identical results. You can add multiple spaces by typing more spaces between the quotation marks: =A1&" "&B1 (with two spaces) or =A1&" "&B1 (with three spaces).
These formulas are especially useful when you have a list of names, addresses, or other data split across columns and you want to combine them into a single column with proper spacing. The formula automatically updates if you change the source data.
Adding padding spaces for visual alignment
Sometimes you need extra spaces at the beginning or end of a cell for formatting or alignment purposes. You can type spaces directly into a cell by pressing the spacebar multiple times. For example, typing five spaces before text shifts it to the right within the cell.
If you need consistent spacing across many cells, use a formula with the REPT function, which repeats a character a set number of times: =REPT(" ",5)&A1 adds five spaces before the content of cell A1. This is more reliable than manually typing spaces in each cell, because the spacing stays consistent if you copy the formula down.
Adjusting row height to display multiple lines
When you add line breaks with Alt+Enter, Excel does not automatically expand the row height to show all the text. You need to either enable text wrapping or manually increase the row height. Text wrapping is usually the better choice because it adjusts automatically if you add or remove content.
To manually adjust row height, position your cursor on the border between two row numbers on the left side of the spreadsheet until it changes to a resize arrow, then drag up or down. Double-clicking that border auto-fits the row to the tallest content in that row. This is useful when you have a mix of single-line and multi-line cells and want them all to display properly.
Removing unwanted spaces from cells
If you have extra spaces in your data that you want to remove, use the TRIM function, which deletes all leading and trailing spaces and reduces multiple spaces between words to single spaces: =TRIM(A1). This is helpful when you import data from other sources that often contain irregular spacing.
The TRIM function does not remove intentional line breaks created with Alt+Enter. If you need to remove those line breaks, use SUBSTITUTE to replace them with nothing: =SUBSTITUTE(A1,CHAR(10),""). The CHAR(10) code represents the line break character in Excel.
Frequently Asked Questions
Why doesn't my line break show up after I press Alt+Enter?
The line break exists in the cell, but text wrapping is not enabled. Select the cell, go to Home > Wrap Text, and the hidden line will appear. You may also need to increase the row height manually if the cell is too short to display both lines.
Can I add a line break in a formula result?
Yes. Use the CHAR(10) function to insert a line break within a formula: =A1&CHAR(10)&B1 combines A1 and B1 with a line break between them. You still need text wrapping enabled to see the result.
What is the difference between CONCATENATE and the ampersand method?
They produce the same result. The ampersand (&) method is shorter and faster to type, so most people prefer it. CONCATENATE is older and works the same way, so either choice is correct.
How do I add a specific number of spaces between words in a formula?
Type the exact number of spaces you want between quotation marks: =A1&" "&B1 adds three spaces. For many spaces, use REPT: =A1&REPT(" ",10)&B1 adds ten spaces between A1 and B1.