Rotate Text in Excel for Angled or Vertical Headers
By ExcelReady TeamUpdated 5 min read
The short answer
To rotate text in Excel, select the cells, go to Home, click Orientation (the angled ab button in the Alignment group) and pick Angle Counterclockwise, Angle Clockwise, Vertical Text, Rotate Text Up or Rotate Text Down. For an exact angle, open Format Cells (Ctrl+1 on Windows, ⌘1 on Mac), choose Alignment and type any value from -90 to 90 degrees.
Key takeaways
- Home > Orientation gives five ready-made rotations in two clicks.
- Format Cells > Alignment > Orientation sets any angle from -90 to 90 degrees.
- Rotated headers let you narrow columns without cutting off long labels.
- To undo rotation, click the same Orientation option again or set Degrees back to 0.
- Rotation changes how text looks, not its value, so formulas and lookups are unaffected.
On this page+
- Why rotate text in Excel?
- How to rotate text with the Orientation button
- How to set an exact angle in Format Cells
- Angled vs vertical text: which should you use?
- Fix the row height and borders after rotating
- How to undo text rotation
- When rotation won't work
- Pick the right width before you rotate
- Practise it
To rotate text in Excel, select the cells and use Home > Orientation, or open Format Cells to set an exact angle. Rotated headers are the classic fix for a wide table with short numbers underneath and long column names on top. This guide covers both methods on Windows and Mac, when angled or vertical headers help, and the small layout problems that come with them.
Why rotate text in Excel?#
Rotating header text lets you make columns narrow without hiding long labels. Picture a training tracker: each column holds a short value like "Yes" or a number, but the headers say "Training completed" or "Overtime hours". With normal headers, every column has to be as wide as its longest label. With angled headers, the label runs diagonally above the column, and the column can shrink to fit the data.
Rotation is only formatting. The cell still contains the same text, so formulas, sorting, filters and lookups work exactly as before.
How to rotate text with the Orientation button#
The Orientation button is the fastest way to rotate text. It sits in the Alignment group of the Home tab and shows the letters "ab" with a slanted arrow.
- Select the header cells, for example B1:F1.
- Go to Home > Orientation.
- Pick one of the options in the table below.
| Option | What it does |
|---|---|
| Angle Counterclockwise | Tilts text up to the right at 45 degrees |
| Angle Clockwise | Tilts text down to the right at -45 degrees |
| Vertical Text | Stacks the letters one above the other, upright |
| Rotate Text Up | Turns text 90 degrees, reading bottom to top |
| Rotate Text Down | Turns text -90 degrees, reading top to bottom |
| Format Cell Alignment | Opens the dialog for an exact angle |
On Windows you can reach the menu from the keyboard: press Alt, then H, F, Q. The Orientation button is in the same place on the Home tab in Excel for Mac. The formatting shortcuts lesson covers more keyboard formatting like this.
How to set an exact angle in Format Cells#
Format Cells lets you choose any angle from -90 to 90 degrees, which is useful when 45 looks too steep.
- Select the cells.
- Press Ctrl+1 (Windows) or ⌘1 (Mac), or right-click and choose Format Cells.
- Open the Alignment tab.
- Under Orientation, drag the red diamond, or type a number in the Degrees box. Positive numbers tilt up, negative numbers tilt down.
- Click the tall Text box on the left for stacked vertical text.
- Click OK.
Angles of 30 to 60 degrees are easiest to read. A full 90 degrees saves the most width but makes readers tilt their head.
Angled vs vertical text: which should you use?#
Use angled text for most header rows, and vertical or 90-degree text only when space is very tight. Here's how they compare:
| Style | Best for | Watch out for |
|---|---|---|
| Angled (45 degrees) | Wide tables with many narrow columns | Headers need a taller first row |
| Rotate Text Up (90 degrees) | Very narrow columns, printed reports | Harder to read, especially long labels |
| Vertical Text (stacked) | Short labels like "Q1" or "MON" | Long words become very tall |
If your labels are long but you only have a few columns, rotation may not be the right fix. Wrapping text onto several lines often reads better, and AutoFit column width sizes columns to their content.
Fix the row height and borders after rotating#
Excel usually makes the row taller to fit rotated text, but you may need to adjust it. If the header row looks cut off, double-click the boundary under the row number to AutoFit the height, or drag it taller by hand.
Two more things change when you rotate:
- Column width. Now you can make the columns narrower. Select them and drag one boundary, and all selected columns take the same width.
- Borders. On angled cells, Excel slants the side borders to follow the text, which gives the familiar "slanted header" look. If you prefer straight lines, remove the side borders from the header row. See how to add and remove borders.
Avoid merging header cells you plan to rotate. Merged cells make sorting and selecting harder; the article on Merge & Center and its alternatives explains a safer option.
How to undo text rotation#
To remove rotation, select the cells and click the active option under Home > Orientation again; it toggles off. Or open Format Cells, go to Alignment and set Degrees to 0. Clearing all formatting also removes it (Home > Clear > Clear Formats), but that strips number formats, fonts and fills too, so use it with care. The more formatting lesson shows how to reset a cell back to General.
When rotation won't work#
A few situations block or limit rotation:
- The sheet is protected. Formatting is off until you unprotect it (Review > Unprotect Sheet), unless the protection allows formatting cells.
- You are editing a cell. If the cursor is blinking inside a cell, most ribbon buttons are disabled. Press Esc or Enter first.
- You want 180 degrees. Cell text only goes from -90 to 90. For upside-down or free rotation, use a text box or shape and drag its rotation handle.
- Chart labels. Chart axis labels are rotated from the chart's own format pane (select the axis, then Format Axis > Size & Properties), not from the Home tab.
Pick the right width before you rotate#
Knowing the length of your longest header helps you decide whether to rotate at all. LEN counts the characters in a cell, and MAX picks the biggest:
=MAX(LEN(A1:E1))For headers Employee, Mon, Overtime hours, Training completed and Site, the result is 18 ("Training completed"). If the longest header is much longer than the data below it, rotating is a good idea. In Microsoft 365 and Excel 2021 this formula works as typed; in older versions, confirm it with Ctrl+Shift+Enter. While you're tidying headers, it's also worth checking your number formats for currency and percentages.
Practise it#
Formatting sticks when your hands learn it. Practise formatting shortcuts in a live spreadsheet: you bold headers and apply number formats from the keyboard, and each step is checked instantly. Then try the more formatting lesson, and do the exercise on this page to measure your headers before you rotate them.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Before you rotate headers, find the longest one. In B3, use MAX and LEN on the header row A1:E1 to get the length of the longest header in characters.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Site | |||||
| 2 | ||||||
| 3 | Longest header | |||||
| 4 | ||||||
| 5 | ||||||
| 6 |
Tip: LEN(A1:E1) gives a length for every header. MAX picks the biggest.
Practise this in a lesson
Frequently asked questions
How do I rotate text 90 degrees in Excel?
Select the cells, go to Home > Orientation and choose Rotate Text Up for +90 degrees or Rotate Text Down for -90 degrees. You can also type 90 or -90 in Format Cells > Alignment > Degrees.
How do I make text vertical in Excel?
Choose Home > Orientation > Vertical Text. The letters stack one above the other and stay upright, which is different from Rotate Text Up, where the whole word turns on its side.
Why is the Orientation option greyed out?
Usually the sheet is protected or you are still editing a cell. Press Esc to leave edit mode, and unprotect the sheet with Review > Unprotect Sheet if needed.
Can I rotate text by 180 degrees in Excel?
Not in a cell. Cell text can rotate from -90 to 90 degrees only. Text boxes and shapes can rotate freely, including upside down, with their rotation handle.
How do I remove text rotation in Excel?
Select the cells and click the active Orientation option again, or open Format Cells > Alignment and set Degrees to 0.