How to Rotate Text in Cells in Excel (Easy Steps)

Sumit Bansal
Written by

Sumit Bansal is the founder of TrumpExcel.com and a 13-time Microsoft Excel MVP. He started this site in 2013 to share his passion for Excel through easy tutorials, tips, and training videos, helping you master Excel, boost productivity, and maybe even enjoy spreadsheets!

Last updated

You can rotate text in Excel cells so it sits at an angle, using the Orientation button in the ribbon, the Format Cells dialog box, or a keyboard shortcut.

When I was working as a full-time analyst, one of my jobs was to prepare weekly reports for clients and stakeholders.

As a part of it, I had to make sure my reports were easy to read and also take less screen space (apparently, clients hate scrolling back and forth).

And the functionality of rotating text came in useful in such reports.

It’s especially useful when you have a bigger heading and a small number (as shown below). Here, headers in Row 1 take less space as these are at an angle (as compared to when they are horizontal).

Sales activity report with the headers in row 1 rotated at an angle so the columns stay narrow

In this tutorial, I will show you the step-by-step process to quickly rotate text in Excel.

Follow along with the example file

Rotate Text in Excel.xlsx

Download

Rotate Text Using Ribbon Alignment Options

Suppose you have a weekly sales activity report as shown below, and you want to rotate the headers in B1:F1 so these columns can be narrower.

Weekly sales activity report with long horizontal headers over small numbers

Below are the steps to rotate the text in the cells:

  1. Select all the cells that have the headers (B1:F1 in this example)
Header cells B1:F1 selected
  1. Click the Home tab
The Home tab in the Excel ribbon
  1. In the Alignment group, click the ‘Orientation’ icon
Orientation icon in the Alignment group of the Home tab
  1. In the options that show up, click on the ‘Angle Counterclockwise’ option
Angle Counterclockwise option in the Orientation drop-down

The above steps would rotate the text in the selected cells by 45 degrees. The columns are still as wide as they were, so the last step is to make them narrower.

  1. Select columns B to F and double-click the border between any two of the selected column headers
Columns B to F auto-fitted after rotating the headers by 45 degrees

This uses AutoFit to fit each column to its content, and since the headers are at an angle, the columns become a lot narrower.

You’ll notice that each angled header leans to the right of its column, and the last one extends over the empty cells next to the data.

That’s just how Excel draws angled text (the cell borders tilt with the text), so nothing is wrong with your data.

In the same Orientation drop-down, you can also choose the options such as Angle Clockwise or Rotate Text Up. While there are some other options as well, I don’t use them (and not sure if anyone does).

While this is a quick way to rotate text in a cell, it gives you limited options. For example, what if you want the angle of the rotation a little more than 45 degrees (say 60 degrees).

You can do that as well, but for that, you need to use the next method covered in this tutorial.

Also read: How to Underline in Excel?

Rotate Text to Any Angle Using the Format Cells Dialog Box

This is a slightly longer method (takes a few extra clicks), but gives you a lot more control.

Suppose you have the same weekly sales activity report, and you want to rotate the headers in B1:F1 by exactly 60 degrees.

Weekly sales activity report with horizontal headers

Below are the steps to do this:

  1. Select all the cells that have the headers (B1:F1)
Header cells B1:F1 selected
  1. Click the Home tab
  1. In the Alignment group, click the ‘Orientation’ icon
Orientation icon in the Alignment group of the Home tab
  1. In the options that show up, click on the ‘Format Cell Alignment’ option
Format Cell Alignment option in the Orientation drop-down

This opens the Format Cells dialog box with the Alignment tab selected.

  1. In the Orientation section on the right side of the dialog box, enter the degrees by which you want the text to be rotated in the Degrees box (60 in this example)
Format Cells dialog Alignment tab with 60 in the Degrees box
  1. Click OK
Headers in B1:F1 rotated by 60 degrees

Pro Tip: You can skip steps 2 to 4 by pressing Ctrl + 1 after selecting the cells. This opens the Format Cells dialog box, where you can click the Alignment tab.

You can also click on the red dot in the Orientation option (in the same dialog box) and use the mouse to get the desired alignment.

The red dot on the Orientation dial in the Format Cells dialog

The Degrees box accepts any value from -90 to 90. A positive number tilts the text upward, and a negative number tilts it downward.

This also means you can’t turn text upside down (180 degrees) inside a cell. If you need that, put the text in a text box and rotate the text box instead.

Also read: How to Write Vertically in Excel

Keyboard Shortcut to Rotate Text in Excel

If rotating the text is something you need to do a lot often, getting used to the shortcut to do this could save you some time.

Below is the keyboard shortcut to rotate text in the selected cells:

Shortcut: ALT + H + F + Q + O (press one after the other)

This applies the Angle Counterclockwise option, so the text in the selected cells is rotated by 45 degrees.

It’s a long keyboard shortcut, but still, the fastest way if you need to use this setting regularly.

Change the Text Orientation Back to Horizontal (Default State)

If you want to remove the rotated text and get back the regular horizontal text, you need to go back and disable the current setting (which you can do by clicking on the same option in the ribbon again).

For example, if you have the text in the Angle Counterclockwise setting, go to the same option and click on it again (it works as a toggle).

Or you can use the Format Cells dialog box (the second method covered in this tutorial) and set the orientation degrees to 0.

If you made the columns narrower after rotating the headers, they stay narrow, so AutoFit them again to fit the horizontal headers.

So these are some of the ways you can quickly rotate text in Excel.

I hope you found this tutorial useful!

Other Excel tutorials you may also like:

Sumit Bansal

Sumit Bansal

13x Microsoft Excel MVP

Hey! I'm Sumit Bansal, founder of trumpexcel.com and a Microsoft Excel MVP. I started this site in 2013 because I genuinely love Microsoft Excel (yes, really!) and wanted to share that passion through easy Excel tutorials, tips, and Excel training videos. My goal is straightforward: help you master Excel skills so you can work smarter, boost productivity, and maybe even enjoy spreadsheets along the way!

Leave a Comment

Get the FREE 51 Excel Tips Ebook

Enter your details and the free PDF is on its way to your inbox.

Hmm, that didn't go through. Please check your email and try again.

No spam. You'll also get my weekly Excel newsletter. Unsubscribe anytime.

Check your inbox!

The ebook is on its way to your email. It usually lands within a couple of minutes.