ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Basics
  3. Rotate Text in Excel for Angled or Vertical Headers

Rotate Text in Excel for Angled or Vertical Headers

By ExcelReady Team·Updated November 3, 2026·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+
  1. Why rotate text in Excel?
  2. How to rotate text with the Orientation button
  3. How to set an exact angle in Format Cells
  4. Angled vs vertical text: which should you use?
  5. Fix the row height and borders after rotating
  6. How to undo text rotation
  7. When rotation won't work
  8. Pick the right width before you rotate
  9. 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.

  1. Select the header cells, for example B1:F1.
  2. Go to Home > Orientation.
  3. Pick one of the options in the table below.
OptionWhat it does
Angle CounterclockwiseTilts text up to the right at 45 degrees
Angle ClockwiseTilts text down to the right at -45 degrees
Vertical TextStacks the letters one above the other, upright
Rotate Text UpTurns text 90 degrees, reading bottom to top
Rotate Text DownTurns text -90 degrees, reading top to bottom
Format Cell AlignmentOpens 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.

  1. Select the cells.
  2. Press Ctrl+1 (Windows) or ⌘1 (Mac), or right-click and choose Format Cells.
  3. Open the Alignment tab.
  4. Under Orientation, drag the red diamond, or type a number in the Degrees box. Positive numbers tilt up, negative numbers tilt down.
  5. Click the tall Text box on the left for stacked vertical text.
  6. 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:

StyleBest forWatch out for
Angled (45 degrees)Wide tables with many narrow columnsHeaders need a taller first row
Rotate Text Up (90 degrees)Very narrow columns, printed reportsHarder 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:

Excel formula
=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.

fx
ABCDEF
1
Employee
Mon
Overtime hours
Training completed
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

LessonFormatting shortcutsBold headers and format currency and percentages from the keyboard.LessonMore formattingItalic and underline, comma style, date format, and resetting a cell to General.

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.

Sources

  • Keyboard shortcuts in Excel - Microsoft Support
  • LEN, LENB functions - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. Why rotate text in Excel?
  2. How to rotate text with the Orientation button
  3. How to set an exact angle in Format Cells
  4. Angled vs vertical text: which should you use?
  5. Fix the row height and borders after rotating
  6. How to undo text rotation
  7. When rotation won't work
  8. Pick the right width before you rotate
  9. Practise it

Keep reading

Basics· 5 min read

How to Wrap Text in Excel (and Fix Tall Rows)

To wrap text in Excel, select the cells and click Home > Wrap Text, or press Alt+H, then W on Windows. Long text then breaks onto several lines inside the cell and the row grows to fit. To start a new line exactly where you want, press Alt+Enter while typing (Control+Option+Return on a Mac).

Basics· 4 min read

How to Merge Cells in Excel, and When Not To

To merge cells in Excel, select them and click Home > Merge & Center, or press Alt, H, M, C on Windows. Excel keeps only the upper-left value, so join text with & first if you need it all. Avoid merging inside data tables: it breaks sorting, filtering and copying. Center Across Selection looks the same without those problems.

Basics· 4 min read

How to AutoFit Column Width and Row Height in Excel

To AutoFit column width in Excel, double-click the right border of the column letter. Excel resizes the column to fit its longest entry. For several columns, select them first and double-click any one border. On Windows, Alt, H, O, I does the same from the keyboard, and Alt, H, O, A fits the row height.

More on basics

  • Excel Row Limit: How Many Rows and Columns a Sheet Holds
  • Select an Entire Column or Row in Excel (Shortcuts)
  • How to Show Formulas in Excel Instead of Results
  • See Sum, Average and Count in the Excel Status Bar
  • Excel Strikethrough Shortcut and Other Ways to Cross Out
  • How to Subtract in Excel: Cells, Columns and Dates
All basics articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free