To center text in the middle of a cell in Excel, select the cell(s), then use the Alignment group on the Home tab to apply both horizontal and vertical centering—this aligns content equally from top-to-bottom and left-to-right within the cell. No special tools or add-ins are required; this works in all modern versions of Excel for Windows, Mac, and online.
What You'll Need
- Microsoft Excel installed (any version from Excel 2010 onward, including Microsoft 365)
- A workbook open with at least one cell containing text
- Access to the Home tab on the ribbon (standard in desktop versions)
Step-by-Step
- Open your Excel workbook and click on the cell where you want to center the text. If you need to center text across multiple cells, click and drag to select the entire range (e.g., B2:D4). Note: for true centering across multiple columns, you may need Merge & Center later, but this guide focuses on centering within a single cell or merged block.
- With the cell(s) selected, go to the Home tab at the top of the Excel window.
- In the Alignment group, locate the two alignment buttons: one showing horizontal alignment (e.g., left, center, right) and one showing vertical alignment (top, middle, bottom).
- Click the Center button in the horizontal row—this aligns the text equally from the left and right edges of the cell.
- Immediately below it, click the Middle Align button (often shown as a small square with a dot in the center and arrows pointing up/down) to center the text vertically—equally from the top and bottom edges of the cell.
- Verify the result: the text should now appear dead-center in the cell, both horizontally and vertically. If the text doesn’t shift, ensure the cell isn’t using a custom number format that forces alignment (see Troubleshooting).
Common Mistakes
- Only centering horizontally: Many users forget vertical centering and end up with text centered left-to-right but aligned to the top—Excel defaults to top-aligned text by default.
- Merged cells confusion: If cells are merged, centering applies to the entire merged area, not individual original cells. Merging can cause issues in sorting or filtering, so avoid it unless necessary.
- Formatting from adjacent cells: Copy-pasting formatting from another cell may override your alignment. Use Format Painter carefully, or paste values only before applying alignment.
- Assuming all text is visible: If the cell is too narrow or short, text may appear cut off and seem uncentered. Increase row height or column width first.
Tips
- Keyboard shortcuts: Use Alt → H → A → M to center horizontally, then Alt → H → A → V → M for vertical centering (Windows only; Mac uses Cmd + 1 to open Format Cells, then set alignment manually).
- Use the Format Cells dialog: Press Ctrl + 1 (Windows) or Cmd + 1 (Mac), go to the Alignment tab, and choose Center for Horizontal and Middle for Vertical. This method works even if the ribbon is hidden.
- Apply to entire rows/columns: To center text in every cell of a row or column, click the row or column header to select it, then apply the alignment steps above.
- Preserve formatting: When inserting new rows/columns, Excel usually inherits alignment from adjacent cells—but if not, reapply centering to new cells.
Troubleshooting
If text still doesn’t center properly, try these checks in order:
- Check cell content type: If the cell contains a formula (e.g.,
=A1+B1), the result will center, but if the cell displays an error (like #DIV/0!), alignment may appear inconsistent. Fix the underlying formula first. - Inspect number format: Right-click the cell > Format Cells > Number tab. If the category is set to Custom, certain formats (e.g., text-aligned custom formats) may override alignment. Change it to General or Text, then reapply centering.
- Check for leading/trailing spaces: Extra spaces can make text look off-center. Use
=TRIM(A1)to clean it, then copy-paste values back. - Verify cell border behavior: Some borders (especially diagonal or thick ones) can create visual illusions. Try removing borders temporarily to confirm alignment.
- Restart Excel or reset view: Rarely, display glitches occur. Close and reopen Excel, or go to File > Options > Advanced > scroll to Display options for this worksheet and ensure Show a dot for a cell with zero value is unchecked (this dot can shift visual center).
- Update Excel: Older versions (pre-2016) may have rendering quirks. Ensure Excel is updated via File > Account > Update Options.
Frequently Asked Questions
Does centering text affect printing?
Yes—centered text prints centered as displayed, but only within the printable area. If the cell is narrow, text may wrap or overflow, altering appearance on paper. Adjust column width before printing.Can I center text in a cell that contains line breaks?
Yes. If you inserted line breaks with Alt + Enter (Windows) or Option + Command + Enter (Mac), vertical centering will position the entire multi-line block in the middle of the cell. Horizontal centering applies to each line individually.Why does my text center but look slightly off?
This usually happens with proportional fonts (like Calibri or Arial), where characters likei or w have different widths. Use a monospaced font (like Consolas) for perfect visual alignment, or manually adjust column width to accommodate wide characters.