Excel has no Justify button on the ribbon, so you set it in Format Cells. Select the cells, press Ctrl+1 (or click the small arrow in the corner of the Home tab’s Alignment group), open the Alignment tab, set Horizontal to Justify, and select OK.
When the text fills two or more lines, every line except the last stretches to both cell edges. Steps are for Excel for Microsoft 365 on Windows, with Mac and web notes below.
What justified text looks like in a cell
Justify is about long text in a single cell, such as a description, a note or an instruction. Microsoft’s Format Cells reference explains that Horizontal Justify lines wrapped text up with both the left and right edges of the cell, and that you need more than one line of wrapped text to see any change. In practice:
- A cell with one short line, like “Paid” or a product name, looks no different. Justify only shows when the text runs onto two or more lines.
- Excel spreads each line by widening the gaps between words. On a narrow column with long words, those gaps can get large, which is why Justify usually looks best in a wide column.
- The last line of each cell stays aligned to the left, the same way justified paragraphs work in a word processor.
So before you start, make sure the column is wide enough to hold a few words per line and the row is tall enough to show every line.
Justify text horizontally with Format Cells
- Select the cell or cells with the long text. To do a whole column, click its letter at the top.
- Press Ctrl+1. Microsoft’s list of Excel keyboard shortcuts gives this for opening the Format Cells dialog box. You can also right-click the selection and choose Format Cells, or select the small dialog launcher arrow at the bottom-right of the Alignment group on the Home tab.
- Select the Alignment tab at the top of the dialog box.
- Under Text alignment, open the Horizontal list and choose Justify.
- Select OK. Wrapped lines are now spread to both edges of the cell.
- If you can only see the first line, the row is too short. Double-click the border under the row number to fit the height, or go to Home > Format > AutoFit Row Height.
If the text still sits on one line, check the Wrap Text button on the Home tab and turn it on. Wrapping depends on column width, so a column that’s too wide may not need a second line at all; drag the column’s right border narrower to make the paragraph shape you want. To give several columns the same exact size first, you can set Excel column width in inches in Page Layout view.
Justify text vertically
The Vertical list on the same Alignment tab has its own Justify option. Microsoft describes it as justifying the cell contents up and down, and its help on line spacing in Excel uses it to spread lines evenly when a cell has spare white space.
- Select the cell, press Ctrl+1, and open the Alignment tab.
- Set Vertical to Justify.
- Select OK. The lines spread out to fill the row height. If you later make the row taller or shorter, the spacing adjusts.
You can set Horizontal and Vertical to Justify together, which fills the cell both ways. Microsoft’s guide to changing line spacing in Excel also covers the reverse problem: if the lines in a cell look too far apart, the cell may already be vertically justified, and setting Vertical to Top, Center or Bottom pulls them back together.
Justify and Distributed: what’s the difference?
The Horizontal list also offers Distributed (Indent), and the Vertical list has Distributed. These look similar to Justify but can also stretch the final line, and even short entries, across the cell. Distributed (Indent) adds an Indent box, which keeps a set number of character spaces between the text and the cell borders. Microsoft’s Excel for Mac help lists it alongside Left (Indent) and Right (Indent) for indenting cell contents.
For ordinary paragraphs, Justify is the safer choice because the last line looks natural. Try Distributed on a copy of the cell if you want text to fill the full width no matter how short it is, and compare.
Fill > Justify is a different tool
On the Home tab, in the Editing group, Fill > Justify doesn’t change alignment at all. It moves text between cells. Microsoft’s description of this command is that it “rearranges the text in a range so that it fills the range evenly.” That means it can:
- Split one long entry in a cell into several rows below it, each no wider than the selected columns.
- Combine short entries in several cells of one column into fewer, fuller cells.
To try it, select the cell with the text plus the empty rows under it (and across as many columns as you want the lines to span), then choose Home > Fill > Justify.
Read this before you run it: if the selected range isn’t big enough, Excel warns that the text will extend below the range. If you accept, the reflowed text replaces whatever is in the cells underneath. Save first or work on a copy. Very long entries may not reflow as you expect, so check the result before you delete anything. Press Ctrl+Z straight away if the result isn’t what you wanted.
Merged cells and text boxes
A merged cell (for example A1:D1 joined with Merge & Center) takes Format Cells alignment like any other cell, so the same Justify steps apply and the text spreads across the whole merged width. If the row doesn’t grow to show every line, drag the row border down by hand. Because merging keeps only the upper-left value, combine the columns into one with a formula first if you need the text from every cell.
When you need finer control, such as line spacing for a block of instructions, Microsoft suggests a text box (Insert > Text Box) drawn over the cells. A text box has its own Paragraph settings, but it floats on top of the sheet and doesn’t move if rows are inserted above it. A text box can also show a live number when you link the text box to a formula cell, so a total or label updates on its own.
Excel for Mac and Excel for the web
Mac: select the cells, right-click, choose Format Cells, open the Alignment tab, and pick Justify from the Horizontal pop-up menu (or the Vertical menu). Microsoft’s Mac help also gives Home > Format > Auto-fit Row Height for showing all the wrapped lines.
Web: Excel for the web shows the standard Left, Center and Right buttons on the Home tab, and Microsoft’s alignment help for the web doesn’t document a Justify option. If you can’t find it in your browser, open the file in the Excel desktop app, apply Justify there, and save.
When Center or Left is the better choice
- Short labels and headings: Justify has no visible effect, so use Center or Left.
- Numbers: leave them right-aligned (General) so the digits line up for comparison. Switching a price column to General also gets rid of the dollar sign that the Currency format adds.
- Narrow columns: justified lines with only two or three words can look gappy. Left alignment with Wrap Text often reads better.
- Headings across several columns: Center Across Selection, also on the Horizontal list, centers a title over a range without merging cells.
Check the result and undo it
To confirm the setting, select the cell, press Ctrl+1 and look at the Alignment tab: Horizontal shows Justify. To undo straight away, press Ctrl+Z. To undo later, open the same tab and set Horizontal back to General, which Microsoft describes as left-aligning text and right-aligning numbers. Clearing all formatting with Home > Clear > Clear Formats also works, but it removes fonts, colors and number formats too.
Common questions about justifying text in Excel
Why does my justified cell print differently from the screen?
Line breaks depend on column width, font and the printer, so a line can wrap in a different place on paper. Check File > Print before printing, and adjust the column width if a word jumps to a new line. If you’re printing long notes on taller paper, see how to print on legal paper in Excel.
Can I make the column fit justified text automatically?
Not the width. AutoFit widens a column to its longest unwrapped entry, which would undo the paragraph shape. Set the width you want by hand and let AutoFit Row Height handle the height. For other cases, here’s how to make columns automatically expand in Excel.
Can I add a line break inside a justified cell?
Yes. While editing the cell, press Alt+Enter on Windows to start a new line; Microsoft’s Mac help gives Control+Option+Return.
Start with one long-text cell: apply Justify, adjust the column width until each line holds a comfortable number of words, then copy that format to the rest with Format Painter.
Matthew Burleigh has been a freelance writer since the early 2000s. You can find his writing all over the Web, where his content has collectively been read millions of times.
Matthew received his Master’s degree in Computer Science, then spent over a decade as an IT consultant for small businesses before focusing on writing and website creation.
The topics he covers for MasterYourTech.com include iPhones, Microsoft Office, and Google Apps.
You can read his full bio here.