Excel Middle Align Shortcut: Center Text Vertically

How-to basics · Updated November 2, 2026

Excel Middle Align Shortcut: Center Text Vertically

In Excel for Microsoft 365 on Windows, select the cell or cells and press Alt, H, A, then M to apply Middle Align. This places cell contents halfway between the top and bottom edges; it does not center them from left to right.

What the Middle Align Shortcut Does

Middle Align is a vertical alignment setting. Excel positions the contents of each selected cell at the vertical midpoint of the cell’s available height. The text stays in the same cell, and the setting does not change the words, numbers, formulas, or the cell’s horizontal alignment.

The shortcut is a sequence of ribbon key tips, not a four-key combination pressed all at once. Press and release Alt, then press H for the Home tab, A for the Alignment commands, and M for Middle Align. If a key tip appears different in your Excel build or language, follow the letters shown on screen; localized editions can use different key tips.

For example, if a heading is in cell A1 and row 1 is unusually tall, Middle Align moves the heading toward the vertical center of that row. It does not make the heading horizontally centered. To center it left to right as well, apply the separate horizontal Center command.

How to Use It from the Ribbon

If you prefer not to use key tips, the ribbon provides a visible way to apply the same setting:

  1. Select one cell, a range, or multiple cells using the usual selection methods.
  2. Open the Home tab.
  3. In the Alignment group, choose Middle Align. The button’s icon depicts text centered between the top and bottom of a cell.

You can also use the Alignment dialog when you want to inspect or adjust several formatting options together. Open the Home tab, then click the small dialog box launcher at the lower-right corner of the Alignment group. On the Alignment tab of Format Cells, choose Center in the Vertical drop-down list and select OK. In that dialog, the term Center refers to vertical alignment; the Horizontal drop-down controls left-to-right positioning.

The ribbon is particularly useful when helping someone else locate the command, or when key tips are unavailable because of a device, keyboard layout, or accessibility setup. The shortcut and the ribbon button set the same cell-formatting property.

Middle Align vs. Center Across the Cell

Excel has two different alignment directions, and the similar names can be confusing. Middle Align concerns vertical placement. Center, in the horizontal alignment controls, concerns left-to-right placement. Applying one does not automatically apply the other.

  • Middle Align: places contents between the top and bottom of the cell.
  • Horizontal Center: positions contents midway between the left and right sides of the cell.
  • Center Across Selection: a horizontal formatting option that centers a value across a selected range without merging the cells.
  • Merge & Center: joins selected cells into one larger cell and centers its content horizontally. It can affect the values retained when cells are merged, so it is not a substitute for vertical alignment.

For a label that should sit in the middle of a tall row and be centered across its own cell, apply both Middle Align and horizontal Center. For a table heading that spans several columns, consider Center Across Selection or a merge only if the layout needs it; neither changes the meaning of the Middle Align shortcut.

When Vertical Centering Is Useful

Middle Align is most noticeable when a cell is taller than its contents. In a standard-height row containing a single line of text, the difference from other vertical settings may be subtle. In a report, form, or dashboard with carefully sized rows, it helps labels and values look balanced.

Common uses include:

  • Centering a short heading vertically in a taller title row.
  • Aligning labels with wrapped descriptions in a multi-line row.
  • Making text appear balanced beside an inserted image or other content that has increased row height.
  • Improving the appearance of a printed form where users write or enter information in taller cells.

Imagine a row expanded to 48 points to accommodate a two-line note in one cell. A one-line status label in another cell may sit at the top by default. Applying Middle Align to the status cell places its text closer to the row’s vertical midpoint. If the note itself wraps to two lines, its block of text is centered as a block within the cell rather than each line being separately positioned.

Selection and Formatting Behavior

Alignment is cell formatting, so it applies to the cells you select, not only to the visible characters. Selecting a range and using the shortcut sets the vertical alignment for every selected cell, including blank cells. If you later type in one of those blank cells, the new entry uses the formatting already assigned to it.

You can select a contiguous range by dragging across cells or selecting the first cell and using Shift with the arrow keys. To format several separate ranges, hold Ctrl while selecting them on Windows, then apply the command. Take care with large selections: the shortcut changes all selected cells, which may include cells whose existing alignment you intended to preserve.

Middle Align does not set row height. If a row is only as tall as a single line, there may be little visible room for the contents to move. Increase the row height or use Wrap Text if the layout requires more vertical space. Conversely, if row height is set to AutoFit, Excel may resize a row to fit its contents, reducing the visible effect of vertical centering.

Excel on Mac and Excel for the Web

The Alt, H, A, M key-tip sequence is for Excel on Windows. Excel for Mac uses a different keyboard and ribbon environment, and there is no Windows-style Alt key-tip sequence that should be assumed to work as a direct equivalent. On a Mac, select the cells and use the Home tab’s Alignment controls to choose Middle Align. The Format Cells alignment controls are another option if you need to specify vertical alignment explicitly.

Excel for the web also provides Middle Align in the Home tab’s Alignment group. Use the visible ribbon control if the Windows sequence is intercepted by a browser or does not produce the expected command. Browser and keyboard settings can affect shortcuts in a web app, so the ribbon is the dependable route when key tips do not appear.

Across these versions, the underlying idea is the same: choose vertical centering for the selected cells. The location and keyboard access can differ, so do not assume a shortcut documented for Windows will work identically on Mac or in a browser.

Common Problems and Fixes

If pressing the keys seems to do nothing, first check that you are pressing them in sequence rather than holding them simultaneously. Press Alt and release it; when the key tips appear, continue with the letters. If no key tips appear, click a worksheet cell and try again, or use the ribbon button directly.

If the text still looks too high or low, check the following:

  • The selection may be wrong. Confirm that the intended cells are selected, especially if you have a multi-area selection or a formatted table.
  • The row may be too short. Increase its height temporarily to make the vertical position easier to see.
  • The setting may be overridden by later formatting. Reapply Middle Align after selecting the cell, or inspect the Vertical setting in Format Cells.
  • The cell may contain wrapped text or a line break. The full text block is aligned within the cell; this can look different from centering a single line.
  • The cell may be merged. Merged cells can complicate row sizing and selection. Check the selected range and consider whether merging is necessary for the layout.

Also distinguish alignment from indentation. Increasing an indent changes the horizontal position of content; it does not move text vertically. Likewise, changing font size or row height can alter the appearance without changing the alignment setting itself.

How to Remove or Change Middle Alignment

To replace Middle Align, select the cells and choose Top Align or Bottom Align from the Home tab’s Alignment group. These are the other vertical alignment options. You can also open Format Cells and choose Top or Bottom from the Vertical drop-down list.

There is not a separate toggle that restores every cell to its previous state. If you apply a new alignment, it replaces the current vertical alignment for the selection. To remove more than alignment formatting, use Clear Formats carefully: that command removes other formatting too, such as number formats, fills, borders, and font styling. Undo with Ctrl+Z immediately after an unwanted change if it is still the most recent action.

Frequently Asked Questions

What is the Excel shortcut for middle align?
In Excel for Microsoft 365 on Windows, press Alt, then H, A, and M in sequence. This applies vertical Middle Align to the selected cells.

Does Middle Align center text horizontally?
No. It centers cell contents between the top and bottom edges. Use the horizontal Center command separately to center contents from left to right.

What is the difference between Middle Align and Center?
Middle Align is a vertical alignment option. Center is a horizontal alignment option. A cell can use either one independently, or both at the same time.

How do I middle-align cells in Excel for Mac?
Select the cells, open the Home tab, and choose Middle Align from the Alignment controls. The Windows Alt key-tip sequence is not a dependable Mac shortcut.

Why can’t I see a difference after applying Middle Align?
The row may be too short for the change to be obvious, or the cell contents may already be vertically centered. Increase the row height briefly and check the Vertical alignment setting in Format Cells.

Related

Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.

More in How-to basics

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.