To set alignment in Excel, select the cells you want to format and use the alignment buttons on the Home tab (or press Ctrl+1 and open the Alignment tab) to choose horizontal alignment, vertical alignment, wrap text, and orientation. That is the short answer. The rest of this guide walks through each option, explains when to use it, and covers the fixes for the problems people hit most often.

What You'll Need

  • Excel for Windows, Mac, or Excel for the web (the ribbon layout is nearly identical; a few dialog options differ slightly by version and platform).
  • A workbook with data already entered, or a blank sheet for practice.
  • No add-ins or special permissions are required for basic alignment.

Step-by-Step

  1. Select the cells. Click a single cell, drag to highlight a range, click a column letter or row number to select the whole column or row, or press Ctrl+A to select the used range. Alignment applies to whatever is selected, so select first.
  2. Go to the Home tab. The alignment controls sit in the Alignment group on the ribbon. If you do not see them, make sure you are on Home, not Insert or Data.
  3. Choose horizontal alignment. Click Align Left, Center, or Align Right. These control where text sits between the left and right edges of the cell. The default for text is left, and for numbers it is right.
  4. Choose vertical alignment. Click Top Align, Middle Align, or Bottom Align. This matters most when a row is tall or when Wrap Text is on, because it controls whether content sits at the top, center, or bottom of the cell height.
  5. Turn on Wrap Text if content is cut off. With the cells still selected, click Wrap Text in the Alignment group. Excel then breaks long text onto multiple lines inside the cell and increases the row height automatically. You can also press Alt+H then W on Windows as a keyboard route.
  6. Adjust indentation (optional). Use Increase Indent and Decrease Indent to push text away from the cell edge. This is handy for sub-items in a list or for labels that need breathing room.
  7. Change text orientation (optional). Click Orientation to rotate text vertically, angle it, or stack it. Use this for narrow column headers so they stay readable without widening the column.
  8. Merge cells only if you really need to. Merge & Center combines selected cells into one. It is fine for a title row, but it breaks sorting and filtering, so avoid it in data tables.
  9. Open the Format Cells dialog for finer control. Press Ctrl+1 (Cmd+1 on Mac), then click the Alignment tab. Here you can set horizontal and vertical alignment, indent, orientation, wrap text, shrink to fit, and merge cells in one place. The Shrink to Fit option reduces font size so text fits the cell width instead of wrapping.
  10. Apply the same alignment to a whole column or row. Select the column header or row number and set alignment once. New entries in that column inherit the format, which saves repeated work.
  11. Copy the formatting to other cells. Use the Format Painter (paintbrush icon on Home) to copy alignment from a formatted cell to others. Select the source cell, click Format Painter, then drag over the target cells.
  12. Clear alignment if you change your mind. Select the cells, go to Home > Clear > Clear Formats. This removes alignment along with other formatting, so use it deliberately. Alternatively, reapply the default alignment manually.

Common Mistakes

  • Merging cells in a data table. Merged cells break sorting, filtering, and pivot tables. Keep merges to headers and labels only.
  • Using spaces to center text. Typing spaces before a label looks centered until the column width changes. Always use the alignment buttons.
  • Confusing horizontal and vertical alignment. If text sits at the top of a tall row when you wanted it centered, you changed the wrong axis. Horizontal moves left and right; vertical moves up and down.
  • Forgetting that numbers align right by default. If numbers look left-aligned, they may be stored as text. Check with ISNUMBER or look for the green triangle warning.
  • Applying alignment to the wrong selection. If only part of a range changes, you probably had a stray cell selected. Reselect the full range and reapply.

Tips

  • Use Center Across Selection instead of Merge & Center for titles. It centers text across adjacent empty cells without merging them, so sorting still works. Find it in Format Cells > Alignment > Horizontal.
  • Set alignment on entire columns before entering data so every new row matches automatically.
  • Combine Wrap Text with Middle Align for cleaner-looking tables with multi-line cells.
  • Use Orientation > Rotate Text Up for narrow header columns; it keeps labels readable without widening the sheet.
  • If you build the same layout often, save a formatted sheet as a template (.xltx) so alignment is already set.

Troubleshooting

  • Alignment buttons are greyed out. The sheet may be protected. Go to Review > Unprotect Sheet (you may need a password). If the workbook is shared or in a protected view, enable editing first.
  • Text still gets cut off after Wrap Text. The row height may be fixed. Select the row, right-click the row header, and choose Row Height > AutoFit, or double-click the row boundary.
  • Numbers will not center. They are likely stored as text. Select the cells, use Data > Text to Columns and finish, or convert with VALUE. Then alignment will behave normally.
  • Alignment changes do not stick. A conditional format or table style may be overriding it. Check Home > Conditional Formatting > Manage Rules and clear conflicting rules.
  • Merged cells misbehave. Select the merged cell and click Merge & Center again to unmerge, then reapply alignment to the individual cells.
  • Formatting looks different on another computer. Fonts and default styles vary by system. Use Format Painter or a template to keep consistency.

Frequently Asked Questions

How do I center text across several cells without merging?

Select the cells, press Ctrl+1, open the Alignment tab, and choose Center Across Selection from the Horizontal dropdown. The text centers across the selection while the cells remain separate, so sorting and filtering still work.

Why is my text aligned differently in some cells?

Those cells likely have direct formatting applied. Select the whole column, set the alignment you want, then use Clear > Clear Formats on any stubborn cells and reapply.

Can I set alignment for an entire worksheet at once?

Yes. Click the Select All button (the square at the top-left corner of the grid), then apply alignment. Be aware this overrides alignment on every cell, including headers you may have formatted differently.

What is the difference between Wrap Text and Shrink to Fit?

Wrap Text breaks content onto multiple lines and grows the row height. Shrink to Fit keeps the content on one line and reduces the font size until it fits. Wrap Text is usually better for readability.

Does alignment affect how Excel sorts or filters?

No. Alignment is purely visual. Sorting and filtering work on the underlying values, not on how they are aligned, unless cells are merged, which does interfere with both.

How do I reset alignment to the default?

Select the cells and go to Home > Clear > Clear Formats, or manually set horizontal alignment back to General and vertical to Bottom. Clearing formats also removes fonts, borders, and fills, so use it only when you want a full reset.