Center Text in Excel: Keyboard Shortcut and How to Use It

How-to basics · Updated November 20, 2026

To center text horizontally in Excel for Microsoft 365 on Windows, select the cell or cells and press Alt, H, A, then C—one key after another, not all at once. This applies center alignment to the selection; it does not merge cells or center text vertically. You need an open workbook and a selected cell range.

What You’ll Need

  • Excel for Microsoft 365 on Windows, with the worksheet you want to format open. The same ribbon button is available in many recent Excel versions.
  • A cell or range of cells containing the text or values you want to center. You can also select empty cells first and center text entered into them later.
  • For the keyboard method, a keyboard with an Alt key. If you use a Mac or Excel for the web, see the platform notes below; keyboard shortcuts and access keys can differ.

Step-by-Step

  1. Open the worksheet and identify the target cells. Decide whether you want to center one entry, a group of labels, or a whole column of values. The shortcut changes formatting for the currently selected cells, so it is worth checking the selection before you press it. Center alignment changes where the contents sit horizontally inside each cell; it does not change the cell’s position or the worksheet’s column layout.
  2. Select the cell or range. Click one cell to format just that cell. To select a continuous range, click and drag across it, or click the first cell, hold Shift, and click the last cell. For example, select B2:B10 to center the entries in those nine cells. To select separate, nonadjacent cells on Windows, hold Ctrl while clicking each one, then apply the shortcut once.
  3. Start the Windows ribbon shortcut. Press and release Alt. Excel displays Key Tips—small letters or letter combinations on ribbon tabs and commands. Do not hold Alt while typing the rest of the sequence. If Key Tips do not appear, click in the worksheet first so Excel, rather than another application or dialog, has focus.
  4. Choose the Home tab. Press H. This selects the Home ribbon tab, where Excel keeps the common font, number, and alignment controls. If the letters visible on your screen differ, follow the Key Tips displayed in your copy of Excel; these can vary with language, ribbon layout, or version.
  5. Open the alignment Key Tips. Press A, then press C. The sequence is Alt, H, A, C: tap each key in order. The final C applies horizontal center alignment to the selected cells. Pressing the letters together as a chord is not the intended method.
  6. Check the result. The contents should appear centered between the left and right edges of each selected cell. Click a different cell to remove the selection outline and make the result easier to see. If you cannot tell whether it worked, select one of the formatted cells and inspect the Center button on the Home tab’s Alignment group; its selected appearance indicates center alignment.
  7. Use the ribbon button if you prefer clicking. Select the cells, open Home, and in the Alignment group click Center. This is the same horizontal alignment command as the shortcut. If the Excel window is narrow and the group is condensed, maximize the window or look for the alignment controls within the compact ribbon.
  8. Use the Mac alternative when working in Excel for Mac. Select the cells and press Command+E to center-align them in current Excel for Mac. You can also open the Home tab and click the Center button in the Alignment group. The Windows sequence Alt, H, A, C is not the Mac keystroke sequence.
  9. Use the ribbon in Excel for the web if the key sequence is intercepted. Select the cells and click Home > Center in the Alignment group. In a browser, keyboard combinations may be handled by the browser or may depend on the access-key behavior available in your setup. The ribbon button is a reliable alternative when the Windows desktop sequence does not work as expected.

These steps center contents horizontally within each cell. To center text top-to-bottom as well, use the Middle Align button in Home > Alignment. For a heading across several columns, consider whether you want to center within each cell, center across a selection, or merge cells; those choices behave differently when you sort, copy, or edit a worksheet.

Common Mistakes

  • Holding the shortcut keys together. The Windows ribbon command is an access-key sequence: press Alt, release it, then press H, A, and C in order. If you press them simultaneously, Excel may not interpret the command correctly.
  • Formatting the wrong range. The shortcut applies to the active selection, which may include more cells than intended. Check the highlighted range and active cell before applying it, especially after selecting an entire row or column.
  • Confusing horizontal and vertical centering. Center places content midway between the cell’s left and right edges. Middle Align places it midway between the top and bottom edges. For a cell that should look centered in both directions, apply both commands.
  • Expecting the shortcut to center a heading across columns. Center alignment centers a value inside its own cell. It does not place a heading across the combined width of several columns. Merging cells is one option, but it can complicate sorting and selecting ranges; Center Across Selection is an alternative in the Format Cells dialog.
  • Assuming the command changes the text itself. Alignment changes display formatting, not the value, formula, or actual contents. It will not insert spaces, alter a number, or change the result of a formula.
  • Using the Windows sequence on a Mac. Excel for Mac uses its own keyboard conventions. Try Command+E or use the Center control on the Home tab rather than expecting the Windows Alt sequence to behave the same way.

Tips

  • Center a range in one action. Select all relevant cells first, then apply the shortcut once. This is faster and more consistent than formatting cells individually. It is especially useful for short labels, headings, status codes, and dates that should line up visually.
  • Apply alignment before entering data. You can select blank cells and center them in advance. New entries typed into those cells will use the alignment setting, unless another style or formatting action overrides it.
  • Keep alignment consistent in a table. Centering every column can make a data-heavy worksheet harder to scan. Text descriptions are often easier to read left-aligned, while short codes or compact headings may benefit from centering. Choose alignment based on how readers will compare the entries.
  • Use Format Cells for more control. Select the cells, open the Format Cells dialog with Ctrl+1 on Windows, and choose the Alignment tab. Set Horizontal to Center and select OK. This is useful when you are already adjusting other alignment options. On Mac, use the Format Cells dialog from the menus or the Home tab controls; Windows dialog shortcuts may differ.
  • Know where the formatting is stored. Alignment is part of cell formatting. Copying a formatted cell with the usual copy-and-paste action can also copy its alignment. If you want only the contents, use Paste Special options that paste values or formulas rather than all formatting.
  • Choose a heading method that suits later edits. For a title spanning columns, you may use Center Across Selection from the Format Cells dialog’s Alignment tab, under Horizontal. It centers the value in the leftmost selected cell across the selected cells without merging them. Merged cells can be less convenient for sorting and editing, so consider worksheet maintenance as well as appearance.

Troubleshooting

The shortcut does nothing. Make sure Excel is the active window and a worksheet cell, rather than a formula bar, dialog, or another program, has focus. In Windows desktop Excel, press and release Alt to reveal Key Tips, then follow the letters shown. If the sequence still fails, click Home > Center instead. Your keyboard layout, Excel language, version, or customized ribbon can affect which Key Tips appear, so use the on-screen prompts as the authority.

The text still looks off-center. Confirm that the cell is selected and that the Center button is active. The content may be visually offset because the cell has indentation, the column is very narrow, or the text includes leading spaces. Center alignment does not remove spaces or indentation. Check for these under Home > Alignment, widen the column if needed, and try again. If text is displayed on multiple lines, also consider row height and Wrap Text.

Only one cell changed. The range may not have been selected before the shortcut was used. Select the full intended range and apply Center again. If some cells still appear different, check whether they are part of a table with a style or whether conditional formatting or a later formatting action is changing their appearance.

The result is centered up and down, but not left to right. You likely used Middle Align rather than Center. Select the cells and apply the Center command in the Alignment group. Conversely, if the text is horizontally centered but sits at the top of a tall row, apply Middle Align as well.

A merged heading is causing problems. If a heading was merged across several columns, commands that select or sort the surrounding range may behave differently. You can undo immediately with Ctrl+Z on Windows, or unmerge the cells from the Merge & Center menu and choose a non-merged layout. Center Across Selection is another option when you need the visual effect without merging.

Frequently Asked Questions

What is the keyboard shortcut to center text in Excel on Windows?
In Excel for Microsoft 365 on Windows, select the cells and press Alt, H, A, C in sequence. Release each key before pressing the next. You can also use Home > Center.

What is the shortcut in Excel for Mac?
In current Excel for Mac, select the cells and press Command+E for center alignment. If that combination is unavailable or behaves differently in your setup, use the Center button on the Home tab.

Does this shortcut center text vertically too?
No. It centers contents horizontally within the cells. To center vertically, select the cells and use Middle Align in Home > Alignment. Apply both commands if you want horizontal and vertical centering.

Can I center text across multiple cells without merging them?
Yes. Select the cells, open the Format Cells dialog, choose the Alignment tab, and set Horizontal to Center Across Selection. Put the heading in the leftmost cell of the selected range. This differs from the ordinary Center command, which centers each cell’s contents within that cell.

Will centering change the value or formula in a cell?
No. Center alignment changes only how the cell contents are displayed. The value, formula, and calculation remain the same, and you can change the alignment later without re-entering the contents.

Why does Alt+H+A+C not work in Excel for the web?
Browser access keys and keyboard focus can affect ribbon shortcuts in Excel for the web. Click the target cells and use Home > Center if the sequence is intercepted or does not match the Key Tips shown on screen.

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.