Shortcut for Center in Excel: Quick Ways to Center Data

How-to basics · Updated November 23, 2026

The quickest shortcut to center data horizontally in Excel is Alt+H, A, C (press Alt, then H, then A, then C). For vertical centering, use Alt+H, A, M. On a Mac, press Command+E for horizontal center and Command+Option+M for vertical center. These shortcuts apply the same alignment as the ribbon buttons in the Alignment group on the Home tab.

Why Centering Shortcuts Matter

Centering is one of the most common formatting tasks in Excel, whether you’re aligning column headers, making a title stand out, or cleaning up a report. Using the mouse to click Home > Center takes several steps and slows you down when working with large datasets. Keyboard shortcuts let you keep your hands on the keyboard and format cells in a fraction of a second. Learning these shortcuts is especially useful for data entry, financial modeling, and any task where you repeatedly align cells.

How the Alt+H,A,C Shortcut Works

Excel’s ribbon shortcuts use a sequence of key presses that reveal the ribbon’s key tips. Here’s the exact process:

  1. Select the cell or range you want to center.
  2. Press Alt – this shows small letters on the ribbon tabs.
  3. Press H – this selects the Home tab.
  4. Press A – this opens the Alignment group options.
  5. Press C – this applies horizontal center alignment.

For vertical centering, the last key is M (for Middle align). You can also combine both by pressing Alt+H,A,C then Alt+H,A,M, or use the dialog box shortcut Ctrl+1 (opens Format Cells), then press Alt+C for horizontal center and Alt+M for vertical center, then Enter.

Mac Shortcuts and Differences

On Excel for Mac, the ribbon shortcuts differ because the Alt key is not used. Instead:

  • Horizontal center: Command+E
  • Vertical center: Command+Option+M
  • Wrap text: Command+Option+R (not directly related but often used with centering)

If you’re using Excel for the web (in a browser), the Alt+H,A,C shortcut works on Windows, but on a Mac browser you may need to use the ribbon buttons because Command+E might not be mapped. In Excel for the web, you can also use the Format Cells dialog (Ctrl+1 on Windows, Command+1 on Mac) and set alignment manually.

Centering Across Multiple Columns (Merge & Center)

A common need is to center a title across several columns. The shortcut for Merge & Center is Alt+H, M, C. This merges the selected cells into one and centers the content. Be aware that merging cells can cause issues with sorting, filtering, and some formulas. If you need to center across columns without merging, use the Center Across Selection option in the Format Cells dialog (Ctrl+1 > Alignment > Horizontal: Center Across Selection). This keeps cells intact and is often a better choice for data integrity.

Common Problems and Misconceptions

One frequent issue is that the shortcut seems to do nothing. This usually happens because you haven’t selected the cells first, or because the cells are already centered. Another misconception is that Alt+H,A,C also centers vertically – it does not. You must use a separate shortcut for vertical alignment. Also, note that centering does not change the cell’s value or format type; it only changes alignment. If you’re trying to center a number that appears left-aligned because it’s text, you may need to convert it to a number first.

Alternatives to Keyboard Shortcuts

If you prefer not to use keyboard shortcuts, you can:

  • Use the ribbon: Home > Alignment > Center (or Middle Align).
  • Use the Format Cells dialog: Ctrl+1 > Alignment tab > Horizontal: Center or Vertical: Center.
  • Create a custom Quick Access Toolbar button for centering. Right-click the ribbon > Customize Quick Access Toolbar, add the Center button, then assign a keyboard shortcut via the Customize Ribbon option (Alt+F,T,C).
  • Use a macro to apply centering to a selection, but remember to save a copy of your workbook before running any macro.

Frequently Asked Questions

Does Alt+H,A,C work in Excel 2016 or older versions?

Yes, the ribbon shortcuts have been consistent since Excel 2007. The Alt+H,A,C sequence works in Excel 2010, 2013, 2016, 2019, and Microsoft 365.

How do I center text vertically and horizontally at once?

There’s no single shortcut that does both. You can press Alt+H,A,C for horizontal, then Alt+H,A,M for vertical. Or use Ctrl+1, then press Alt+H (for Horizontal) and choose Center, then Alt+V (for Vertical) and choose Center, then Enter.

Why does my centered text appear left-aligned after I press the shortcut?

Check if the cells are merged or if the text is actually a number with a custom format that includes spaces. Also, ensure you’ve selected the correct range. If the cell contains a formula that returns a text string, centering should still work.

Can I use a shortcut to center across multiple columns without merging?

Yes, use the Format Cells dialog (Ctrl+1) and set Horizontal to “Center Across Selection”. There’s no direct keyboard shortcut for this, but you can create a macro or add it to the Quick Access Toolbar.

Is there a shortcut for center alignment in Google Sheets?

In Google Sheets, the shortcut is Ctrl+Shift+E for horizontal center (Windows/ChromeOS) and Command+Shift+E on Mac. For vertical center, there is no keyboard shortcut; you must use the toolbar button (Format > Align > Middle).

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.