Excel Shortcut to Center Text: Windows, Mac, and Web

How-to basics · Updated November 2, 2026

Excel Shortcut to Center Text: Windows, Mac, and Web

In Excel for Microsoft 365 on Windows, select the cell or cells and press Alt, H, A, then C to center text horizontally. Press the keys one after another, not all at once; you can also click Home > Center in the Alignment group.

The Windows shortcut and what the keys mean

The sequence Alt, H, A, C is a set of Excel ribbon KeyTips. Pressing Alt displays KeyTips over ribbon tabs and commands. The remaining letters navigate to the Home tab, the Alignment commands, and Center. Depending on the ribbon layout or Excel language, the letters shown on screen can differ, so follow the displayed KeyTips if the sequence does not match.

Use the sequence this way:

  1. Select the cell, range, row, or column you want to format.
  2. Press and release Alt.
  3. Press and release H, then A, then C.

It changes the horizontal alignment of the selection. It does not change the font, the cell’s value, its number format, or the vertical position of its contents. For vertical centering, use the separate Middle Align command. The distinction matters in tall rows: text can be centered left-to-right while remaining at the top of the cell.

What center alignment changes

Center alignment positions a cell’s displayed content midway between its left and right edges. It applies to the cell, rather than to a whole line of text or a group of neighboring cells. For example, if a date is in B2 and you center B2, that date appears in the middle of column B’s width. The value remains a date and can still be sorted, calculated, or used in formulas in the usual way.

Text alignment is a display format. It does not insert spaces before or after a value, and it does not alter the underlying characters. That makes it preferable to adding spaces to make a label look centered: spaces can make text appear misaligned when column widths change and can affect matching or cleanup operations.

Centering can make short headings, status labels, and compact codes easier to scan. It is usually less useful for long sentences or paragraphs, where a consistent left edge is easier to follow. A useful rule is to center brief labels when that improves the layout, but keep longer explanatory text left-aligned.

Center one cell, a range, or a whole column

The shortcut operates on the current selection, so selecting the right cells is just as important as pressing the keys. Click a single cell to center only that cell. Drag across a rectangular range, or click the first cell and use Shift with the arrow keys to extend the selection. Then run the shortcut once; Excel applies the alignment to every selected cell.

To format a full column, click its letter heading, such as C, and use the shortcut. To select a whole row, click its number heading. Be cautious with entire-row or entire-column formatting in a large workbook: it may be more formatting than you need and can make later layout changes harder to manage. For a heading across a table, select only the relevant heading cells rather than the entire worksheet row.

For example, if a report has month names in B1:M1, select B1:M1 and press Alt, H, A, C. Each month name is centered within its own column. This does not center the heading across all twelve columns as one combined title; it centers each individual cell’s contents separately.

Horizontal, vertical, and across-selection alignment

Excel’s Alignment group contains several commands that sound similar but do different jobs. Center centers content horizontally inside each selected cell. Middle Align places the content halfway between the top and bottom of each cell. If a title needs to sit in the visual middle of a tall cell, apply both commands.

There is also Merge & Center, which combines selected cells into a larger merged cell and centers the remaining content. It is not the same as the Center command. Merging can complicate sorting, filtering, selecting ranges, and copying data; if multiple selected cells contain values, Excel keeps the upper-left cell’s content and removes the other cell contents. Do not use Merge & Center just to make a label look centered across columns unless merging is genuinely needed.

A non-merging alternative for centering a heading across adjacent columns is Center Across Selection. Select the cells, open the Format Cells dialog, go to the Alignment tab, and choose Center Across Selection in the Horizontal list. This displays the text centered across the selected span without joining the cells. The text should be in the leftmost cell of the selection, and the other cells in the span should be empty for the effect to work as intended.

Using the ribbon, Mac, and Excel for the web

If you prefer not to use KeyTips, select the cells and choose Home > Center in the Alignment group. The icon depicts centered horizontal lines. The ribbon is also a good fallback when a customized keyboard, a localized Excel installation, or a changed interface makes the KeyTip letters unfamiliar. Hovering over a command or opening Excel’s Help search can identify the relevant command.

In Excel for Mac, select the cells and use Command+E to center-align them in versions that provide that shortcut. You can also use Home > Center, which avoids relying on a keyboard mapping that may vary with the Excel release, keyboard layout, or other software shortcuts. The Windows KeyTip sequence is not the Mac shortcut.

In Excel for the web, select the cells and use Home > Center. The Windows desktop KeyTip sequence may not behave as expected in a browser because browser and web-app keyboard handling can differ. If a shortcut is intercepted, the ribbon command is the dependable option. These instructions concern Excel; other spreadsheet applications may use different shortcuts or command names.

Common problems and quick fixes

  • The text did not move: Check that the intended cells were selected before using the shortcut. If a cell is in edit mode, finish editing with Enter or Esc, select the cell again, and apply alignment.
  • The text looks left-aligned: Check whether the content is in another cell, whether the selection included the right cell, or whether the text is spilling visually into an empty neighboring cell. Overflow can make left-aligned text appear to occupy space beyond its own cell.
  • Only some cells changed: One or more cells may not have been included in the selection. Select the full range and apply Center again. If the cells are in separate areas, hold Ctrl while selecting additional ranges on Windows, then apply the command.
  • The words still do not fit: Center alignment does not widen a column or shrink text. Adjust the column width, turn on Home > Wrap Text, or choose an appropriate font size. Wrapping changes how text occupies rows; it is separate from horizontal alignment.
  • The content is centered vertically but not horizontally, or vice versa: Apply the other alignment command as needed. Horizontal and vertical alignment are independent settings.

Also check for conditional formatting or workbook protection if a command appears unavailable or formatting seems inconsistent. Conditional formatting can affect how cells look, although it does not normally replace the basic alignment setting. A protected worksheet may restrict formatting depending on the protection options set by its author.

When to center text—and when not to

Centering is a visual choice, not a data-cleaning or calculation feature. It often suits column headings, short category labels, check marks, or brief values in a compact dashboard. For instance, a table with product names in A and a one-word Yes/No status in B may be easier to scan if the status column is centered while the product names stay left-aligned.

For a table of long descriptions, left alignment generally makes the start of each row easier to locate. Right alignment is often useful for numbers because it lines up their right edges, making magnitudes easier to compare. Excel commonly displays numbers right-aligned by default and text left-aligned by default, but applying Center deliberately overrides that default appearance without changing the data type.

Keep formatting consistent within a column when the cells serve the same purpose. A report can use centered column headings and left-aligned descriptions without looking inconsistent, because those cells have different roles. If you are preparing data for sorting, filtering, or export, favor a simple table structure and avoid merging cells across records; alignment alone is generally a safer formatting change.

Frequently Asked Questions

What is the shortcut to center text in Excel on Windows?
For Excel for Microsoft 365 on Windows, select the cells and press Alt, H, A, C in sequence. You can also click Home > Center.

Do I press Alt, H, A, and C at the same time?
No. These are ribbon KeyTips, so press and release each key in order. Pressing them simultaneously will not run the same command.

How do I center text vertically?
Select the cell or range and choose Home > Middle Align. Use Center as well if you want the text centered both horizontally and vertically.

Does Center merge cells?
No. Center changes alignment within each cell. Merge & Center is a separate command that merges cells and can discard contents outside the upper-left cell.

How do I center a heading across several columns without merging?
Put the heading in the leftmost cell, select the span, then use Format Cells > Alignment > Horizontal > Center Across Selection. Leave the other selected cells empty.

What is the Mac shortcut for center alignment?
In Excel for Mac, Command+E is available for center alignment in versions that support that mapping. If it does not work in your setup, select the cells and use Home > Center.

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.