To slant a cell in Excel, you rotate the text inside it at an angle. This is done with the Orientation button on the Home tab, which lets you tilt text upward, downward, or at any custom angle. You don't need any special tools or add-ins—just a few clicks. This is useful for making column headers fit in narrow columns, adding visual interest to a table, or labeling a diagonal corner in a matrix. Here's exactly how to do it, plus what to watch out for.
What You'll Need
- Microsoft Excel (desktop version for Windows or Mac, or the free Excel for the web). The steps are the same in all three, though menu labels may differ slightly by version.
- A worksheet with at least one cell that contains text or a value you want to rotate.
Step-by-Step
- Select the cell or range you want to slant. Click a single cell, or click and drag to select multiple cells. You can also select an entire column or row by clicking its letter or number.
- Go to the Home tab on the ribbon at the top of Excel. It's the default tab, so you're probably already there.
- Find the Orientation button. It's in the Alignment group, which is near the middle of the ribbon. The button looks like a letter "ab" with a slanted arrow underneath. If you hover over it, the tooltip says "Orientation."
- Click the Orientation button. A dropdown menu appears with several preset options: Angle Counterclockwise, Angle Clockwise, Rotate Text Up, Rotate Text Down, Vertical Text, and Format Cell Alignment.
- Choose a preset slant. For a quick diagonal effect, pick Angle Counterclockwise (tilts text upward to the right) or Angle Clockwise (tilts text downward to the right). These are the most common for headers.
- Or set a custom angle. If you want a specific tilt, like 30° or 70°, click Format Cell Alignment at the bottom of the dropdown. This opens the Format Cells dialog box. In the Alignment tab, look for the Orientation section on the right. There's a small dial or a box where you can type a number. Type your desired degrees (e.g., 45) and click OK.
- Adjust the row height and column width. After rotating, the text may overflow into neighboring cells or get cut off. Drag the row boundary (the line below the row number) to make the row taller, and drag the column boundary to make the column wider. You can also use Home > Format > AutoFit Row Height and AutoFit Column Width to let Excel size it automatically.
- Fine-tune the alignment. With the cell still selected, use the Align Left, Center, or Align Right buttons in the Alignment group to control horizontal placement. Use Top Align, Middle Align, or Bottom Align for vertical placement. For a typical header, you might want the text centered both ways.
Common Mistakes
- Selecting the wrong cell—if you select a merged cell, the rotation applies to the whole merged area, which can look odd. Unmerge first if needed.
- Not adjusting row height—after slating, the text may be hidden because the row is too short. Always check that the row is tall enough to display the rotated text.
- Using the wrong button—the Orientation button is not the same as the "Text Direction" button (which changes text to right-to-left for languages like Arabic). Text Direction is a separate button with a "T" and an arrow; don't confuse them.
- Applying rotation to a whole column accidentally—if you click the column letter, you select the entire column, and every cell in that column gets rotated, even empty ones. Select only the cells you need.
- Typing degrees in the wrong box—in the Format Cells dialog, the Orientation section has a small dial and a text box. Make sure you type in the text box next to "Degrees," not in the "Text direction" dropdown.
Tips
- Use a 45° angle for headers—this is the most readable slant for column labels. It's a good balance between saving horizontal space and keeping text legible.
- Combine with borders—after slating, add borders to the cell to make the header look like a proper table header. Select the cell, go to Home > Borders, and choose a bottom border or a full box.
- Keyboard shortcut—press Ctrl+1 (Windows) or Cmd+1 (Mac) to open Format Cells directly, then go to the Alignment tab. This is faster than clicking through the ribbon.
- Use for diagonal matrix labels—if you're creating a table where the top-left cell is blank and the row/column headers are the same list, slanting the column headers at 45° makes the table compact and professional.
- Copy the format—if you want to apply the same slant to other cells, select the formatted cell, click the Format Painter (the paintbrush icon in the Clipboard group on the Home tab), then click the target cell or drag across a range.
Troubleshooting
If the text doesn't appear rotated:
- Check that you selected the correct cell. The rotation applies to the cell's content, not the cell border.
- Make sure you clicked the Orientation button and chose an option. If you typed a custom angle, verify that you clicked OK in the dialog box.
- If the cell is in a table (created with Ctrl+T), the table style might override some formatting. Try converting the table back to a range (Table Design > Convert to Range) and then apply rotation.
If the text is cut off or overlapping:
- Increase the row height. Drag the row boundary down, or select the row and go to Home > Format > Row Height to set a specific value.
- Reduce the font size. With the cell selected, go to Home and lower the font size in the Font group. This often makes the rotated text fit better.
- Enable text wrapping? No—wrapping doesn't work well with rotated text. Instead, use a smaller angle or a shorter label.
If the Orientation button is grayed out:
- This happens when the worksheet is protected. Go to Review > Unprotect Sheet (you may need the password).
- Or if the cell is in a locked state and the sheet is protected, you'll need to unprotect it first.
If the rotation works but the text is upside down:
- You likely chose Rotate Text Down (which reads from bottom to top) or a negative angle. Select the cell, open Orientation, and choose Angle Counterclockwise for a positive tilt.
If you want to undo the slant:
- Select the cell, go to Orientation, and choose Format Cell Alignment. In the dialog, set the degrees to 0 and click OK. Or press Ctrl+Z to undo the last action.
Frequently Asked Questions
Can I slant a cell diagonally in Excel?
Yes, you can rotate text at any angle, including 45°, which looks diagonal. However, you cannot rotate the cell border itself—only the text inside. For a true diagonal split cell (like a triangle), you'd need to draw a diagonal line using shapes or a custom border, which is more advanced.
How do I slant text in Excel without using the ribbon?
Press Ctrl+1 (Windows) or Cmd+1 (Mac) to open Format Cells, go to the Alignment tab, and set the degrees in the Orientation section. This is the quickest method.
Why is my rotated text hidden?
Usually because the row height is too small. The rotated text extends beyond the cell's original height. Increase the row height or reduce the font size.
Can I slant text in Excel for the web?
Yes, the Orientation button is available in Excel for the web. The steps are the same, though the Format Cells dialog may look slightly different—look for the "Alignment" tab when you right-click a cell and choose "Format Cells."
Does slating a cell affect sorting or formulas?
No, rotation is purely visual. The cell's value and formula remain unchanged. Sorting and calculations work exactly as before.
Can I slant only part of the text in a cell?
No, rotation applies to the entire cell content. You cannot rotate a single word or character within a cell. To achieve that, you'd need to use a text box or separate cells.