How to Center Text Vertically in Excel
In this article
To center text vertically in Excel, select the cells, then on the Home tab click the Middle Align button in the Alignment group (the icon with lines stacked between two arrows). Alternatively, press Ctrl+1 (Cmd+1 on Mac) to open Format Cells, go to the Alignment tab, and set Vertical to Center. This makes text sit in the middle of the row height instead of clinging to the bottom, which looks cleaner in tables, headers, and merged cells.
What You'll Need
- Microsoft Excel for Windows, Mac, or the web (the steps below work across all three; labels may differ slightly by version).
- A worksheet with data already entered.
- Optional: a mouse or trackpad for ribbon clicks, or just a keyboard.
Step-by-Step
- Select the cells you want to center. Click and drag to highlight a range, or press Ctrl+A (Cmd+A on Mac) to select the whole sheet. You can also click a column header to select the entire column.
- Go to the Home tab. If the ribbon is collapsed, double-click any tab name to pin it open.
- Find the Alignment group. It contains buttons for horizontal alignment (left, center, right) and vertical alignment (top, middle, bottom).
- Click the Middle Align button. It is the icon with horizontal lines and a vertical double-arrow. Hover over it to confirm the tooltip says "Middle Align." The text in your selected cells will jump to the vertical center of each row.
- Check the result. If the row height is small, the change may be hard to see. Increase row height by dragging the row boundary or using Home > Format > Row Height.
- For more control, open Format Cells. Press Ctrl+1 (Cmd+1 on Mac). In the Format Cells dialog, click the Alignment tab. Under Vertical, choose Center from the dropdown. You can also set Wrap text and horizontal alignment here. Click OK.
- Apply to merged cells if needed. Select the merged cell and repeat the Middle Align click or the Format Cells method. Merged cells sometimes ignore ribbon alignment if the merge was just created; clicking outside and back usually refreshes it.
- Copy the formatting to other cells (optional). Use the Format Painter: select a cell that already has vertical centering, click Format Painter on the Home tab, then drag over the target cells.
- Save your work. Press Ctrl+S (Cmd+S on Mac).
Common Mistakes
- Confusing horizontal and vertical center. The Center button in the Alignment group only centers left-to-right. For top-to-bottom centering you need Middle Align.
- Selecting only one cell when you meant a whole column. Alignment applies to the selection, so highlight everything first.
- Expecting vertical centering to change row height. It does not; you must adjust row height separately.
- Using Merge & Center when you only need alignment. Merging can break sorting and filtering. Use Middle Align without merging unless you truly need one large cell.
- Forgetting that wrapped text changes the visual center. With Wrap text on, the text block is centered as a block, not each line individually.
Tips
- Use the keyboard shortcut Alt+H, then A, then C on Windows to reach Middle Align quickly (the exact key sequence can vary by version). On Mac, Ctrl+1 then the Alignment tab is reliable.
- To center vertically across several rows without merging, select the rows and use Middle Align; each cell centers independently.
- If you want both horizontal and vertical centering, click Center and Middle Align in that order.
- Apply vertical centering to header rows so labels look balanced against taller data rows.
- Use Cell Styles (Home > Cell Styles) to save a consistent alignment for future sheets.
Troubleshooting
- Nothing happens when I click Middle Align. Make sure the sheet is not protected. Go to Review > Unprotect Sheet. Also confirm you are not editing inside a cell (press Esc first).
- The text still looks bottom-aligned. The row may be too short to show a difference. Increase row height. Also check that Wrap text is not forcing the text into a tall block that appears off-center.
- Only part of my selection changed. Some cells may have different formatting or be part of a merged range. Select the whole area and apply Middle Align again.
- Merged cells behave oddly. Unmerge (Home > Merge & Center dropdown > Unmerge Cells), apply alignment, then re-merge if needed.
- The button is greyed out. You may be in a protected view or a shared workbook with restrictions. Save a copy and try again.
Frequently Asked Questions
What is the difference between Center and Middle Align?
Center aligns text horizontally (left to right). Middle Align centers it vertically (top to bottom). Use both for full centering.
Can I center text vertically in Excel Online?
Yes. Select cells, go to the Home tab, and use the Middle Align button in the Alignment group. The Format Cells dialog is also available via Ctrl+1.
Does vertical centering work with wrapped text?
Yes, but the entire wrapped block is centered as one unit. Individual lines are not separately centered vertically.
How do I center text vertically across multiple rows without merging?
Select all the rows you want, then click Middle Align. Each cell centers its own content; the text does not span across rows.
Why does my text look off-center after I change the font size?
Larger fonts need taller rows. Increase row height or enable AutoFit (double-click the row boundary) so the centering is visible.
Can I set vertical centering as the default for new workbooks?
You can create a template with the alignment applied, or modify the Normal cell style. Go to Home > Cell Styles > right-click Normal > Modify > Format > Alignment > Vertical: Center.