Rotating Text in Excel: A Quick Guide

Ever found yourself with column headers that are too long for their cells in Excel? You’re not alone! Sometimes resizing columns to fit everything just makes things look awkward, especially if the column content is mostly small numbers. Rotating the text can be a great solution to make your spreadsheets more compact and visually appealing. Excel offers several ways to achieve this, from simple presets to precise angle adjustments. Let’s explore them!

Method 1: Using the Format Cells Dialog Box

The most precise way to rotate text is through the “Format Cells” dialog box, giving you complete control over the rotation angle.

  1. First, select the cell(s) you want to rotate. This could be a single cell, a range, or even entire rows or columns.
    select cell

  2. Open the “Format Cells” dialog box. You can do this in a few ways:

    • Go to the ‘Home’ tab, find the ‘Alignment’ section, click the ‘Orientation’ button, and then select “Format Cell Alignment.”
    • Alternatively, you can click the small arrow icon (Alignment Settings) in the bottom-right of the Alignment group, or simply press Ctrl+1.
  3. In the “Format Cells” window, go to the “Alignment” tab. You’ll see an “Orientation” section with a dial and an angle input box.

  4. Now, you have two options for setting the angle:

    • Click and drag the dial or click anywhere on the semicircle to set a rough angle.
    • Type the exact degree of rotation you want in the box below. For example, enter ‘30’ to rotate the text 30 degrees. After that, click ‘OK’.
  5. Here’s how the text looks after rotating it to 30 degrees.

  6. If your rotated header text looks misaligned, select the rotated text and use the “Middle Align” or “Center” buttons (or both) from the Alignment group to center it vertically and/or horizontally within the cell.

Method 2: Using Pre-Defined Orientation Options

If you don’t need precise control and just want a quick rotation, you can use Excel’s pre-set options.

  1. Again, start by selecting the cell(s) you want to rotate.
    select cell

  2. Go to the ‘Home’ tab, and in the Alignment group, click the ‘Orientation’ button. (the one with ‘ab’ at an incline). Then select one of the following options from the menu:

  3. Here is what each option does:

    • Angle Counterclockwise: Rotates the text 45 degrees counterclockwise.
      angle counterclockwise
    • Angle Clockwise: Rotates the text 45 degrees clockwise.
      angle clockwise
    • Vertical Text: Displays each letter vertically, one below the other.
    • Rotate Text Up: Rotates the text 90 degrees, starting from the lower-right and going up.
      rotate text up
    • Rotate Text Down: Rotates the text 90 degrees, starting from the top and going down.
      rotate text down

Method 3: Using Keyboard Shortcuts

For the speed demons and keyboard enthusiasts, Excel also provides keyboard shortcuts to access the orientation options:

  1. Select the cell or range of cells.

  2. Use the following shortcut sequences. Note: Press keys one after another (not simultaneously):

    • ALT + H + F + Q: This opens the “Orientation” menu from the ribbon, also showing you the shortcut keys for other options.
    • ALT + H + F + Q + O: Rotates text counterclockwise.
    • ALT + H + F + Q + L: Rotates text clockwise.
    • ALT + H + F + Q + V: Makes text vertical.
    • ALT + H + F + Q + U: Rotates text upward.
    • ALT + H + F + Q + D: Rotates text downward.
    • ALT + H + F + Q + M or Ctrl+1: Opens the “Format Cells” dialog box.

Removing Text Rotation

If you need to undo a rotation, there are several ways to do it:

Method 1: Using Undo

If you’ve just rotated the text, the easiest method is to simply use the “Undo” function. Press Ctrl + Z or click the “Undo” arrow in the Quick Access Toolbar.

Method 2: Toggling the Orientation Option

If you used one of the preset “Orientation” options from the ribbon, you can undo the rotation by simply toggling it off. For example, if you selected “Rotate Text Up”, selecting it again will remove the rotation.

  1. Select the cell(s) with the rotated text.
  2. Go to the ‘Home’ tab and click ‘Orientation’ in the Alignment section.
  3. Click the applied rotation option again to remove it. For example, click “Rotate Text Up” again.

Method 3: Setting the Orientation Angle to 0

Finally, you can remove rotation by using the “Format Cells” dialog box.

  1. Select the cell(s) with rotated text.

  2. Open the “Format Cells” dialog box (Ctrl + 1).

  3. In the “Alignment” tab, set the “Orientation” angle to 0 degrees and click ‘OK’.

  4. The text will go back to its default horizontal state.
    text horizontal