How to Centre in Excel: Cells, Text & Headings
In this article
To centre content in Excel, select the cells you want to change and click the Centre alignment button on the Home tab, or press Alt+H then A+C on Windows. That centres the cell contents horizontally. If you also want the text centred vertically, use the Middle Align button next to it. For headings that need to sit across several columns, select the range and use Merge & Center instead. The steps below cover each case, plus what to do when centring appears to do nothing.
What You'll Need
- Excel for Windows, Excel for Mac, Excel for the web, or the Excel mobile app. Menu labels can differ slightly by version, device and region.
- A workbook with at least one sheet containing data or text.
- No add-ins are required; the alignment tools are built in.
Step-by-Step
- Select the cells you want to centre. Click and drag across a range, or hold Ctrl (Cmd on Mac) and click several separate cells. To centre an entire column, click the column letter at the top. To centre the whole sheet, click the small square at the top-left corner where the row and column headers meet.
- Go to the Home tab. The alignment controls live in the Alignment group on the ribbon. On a narrow window or a small screen, the group may collapse into a single Alignment button; click it to reveal the options.
- Click the Centre button. It is the icon with lines centred between two vertical edges. On Windows the keyboard shortcut is Alt, H, A, C in sequence. On Mac, use the alignment buttons on the Home tab; the ribbon layout is similar but the shortcut keys differ.
- Centre vertically if needed. Click the Middle Align button, which sits beside the horizontal alignment buttons. This is useful when a row is tall and the text sits at the bottom by default.
- For a heading across several columns, use Merge & Center. Select the full range you want the heading to span, then click Merge & Center on the Home tab. Excel keeps only the value in the upper-left cell and warns you if other cells contain data. If you want the heading centred without merging, select the range, open Format Cells (Ctrl+1), go to the Alignment tab, and set Horizontal to Center Across Selection. This looks the same but leaves the cells unmerged, which is safer for sorting and filtering.
- For centred text inside a single cell that wraps onto several lines, turn on Wrap Text first, then apply Centre and Middle Align. Without Wrap Text, long text spills into neighbouring empty cells and appears left-aligned even when centring is switched on.
- Check the result. If the text still looks left-aligned, click the cell and look at the alignment buttons on the Home tab; the active one is highlighted. A cell can also carry direct formatting that overrides a style, so reapply the alignment to the selected cells rather than to the whole sheet.
Common Mistakes
- Centring the whole sheet when only one column was meant. Selecting the corner square applies alignment to every cell, including headers and number columns that read better left- or right-aligned. Undo with Ctrl+Z (Cmd+Z on Mac) and reselect the intended range.
- Confusing Centre with Merge & Center. Centre changes alignment only. Merge & Center combines cells, which breaks sorting, filtering and copy-paste into other tools. Use Center Across Selection when you want the look without the merge.
- Expecting numbers to centre automatically. Excel right-aligns numbers by default. Applying Centre does work on numbers, but if the cell shows a green triangle or an error, the value may be stored as text; centring will not fix the underlying type.
- Centring text that overflows. If a neighbouring cell contains data, the text is clipped rather than centred. Widen the column or enable Wrap Text before centring.
- Forgetting vertical alignment. Horizontal centring alone leaves text at the bottom of a tall row. Use Middle Align as well for a balanced look.
Tips
- Use Format Painter to copy centring from one cell to others: select the formatted cell, click Format Painter, then click the target cells.
- Create a cell style for centred headings so you can reapply the same alignment consistently. On the Home tab, open Cell Styles and modify or create a style.
- For printouts, centre the whole table on the page via Page Layout > Margins > Custom Margins and tick Horizontally. This is page centring, not cell centring, and is often what people actually want.
- On Excel for the web, the alignment buttons are on the Home tab in the same group; the keyboard shortcuts may differ from the desktop app.
- In the Excel mobile app, select the cells, tap the formatting icon (often an A with a pencil or a paintbrush depending on platform), then choose the alignment option. Labels vary by version.
Troubleshooting
If centring does not seem to work, check these in order:
- Confirm the cells are actually selected. Click away and reselect the range; the Name Box at the top-left should show the range reference.
- Look for merged cells. A merged cell can only align its content as a whole. Select the area and click Merge & Center to unmerge, then reapply alignment.
- Check for Wrap Text and column width. Turn on Wrap Text and widen the column so the text has room to centre.
- Clear direct formatting. Select the cells, go to Home > Clear > Clear Formats, then reapply centring. This removes borders, fills and number formats too, so use it on a copy if the sheet is heavily formatted.
- Check conditional formatting. A rule can set alignment. Open Home > Conditional Formatting > Manage Rules and review rules that apply to the selected cells.
- If the file is shared or protected, the sheet may be locked. Review > Unprotect Sheet may be needed; you will need the password. Unprotecting removes the restriction but does not delete data.
Frequently Asked Questions
What is the keyboard shortcut to centre in Excel?
On Windows, press Alt, then H, then A, then C in sequence. On Mac, the ribbon buttons are the reliable method; shortcut keys vary by version and keyboard layout.
How do I centre text across multiple columns without merging?
Select the range, press Ctrl+1 (Cmd+1 on Mac) to open Format Cells, go to the Alignment tab, and set Horizontal to Center Across Selection. The text appears centred while the cells remain separate, so sorting and filtering still work.
Why does my centred text still look left-aligned?
The most common causes are Wrap Text being off with text overflowing into an empty neighbour, a merged cell, or conditional formatting overriding the alignment. Check those three first.
Can I centre only part of the text in a cell?
No. Alignment applies to the whole cell. To centre a single word or phrase, put it in its own cell or use a text box, which can be positioned and centred independently.
Does centring affect sorting or formulas?
No. Alignment is formatting only; it does not change values, formulas or sort order. Merged cells, however, can interfere with sorting, which is why Center Across Selection is often the better choice for headings.