To rotate names in Excel, you either change the direction the text reads (sideways, vertical, or angled) or you change how the names are laid out (column headings turned into row headings). Both are quick: select the cells, open the alignment options on the Home tab, and choose a rotation angle or an orientation. If you mean transposing, copy the names, then use Paste Special > Transpose, or the TRANSPOSE function. The rest of this guide walks through each method, plus the traps that make rotated names look wrong.
What You'll Need
- A spreadsheet with names already typed into cells (Excel for Windows, Mac, or the web app all work).
- Names kept one per cell, in a contiguous block, with no blank rows or columns inside the block if you plan to transpose.
- Enough row height or column width for angled text: Excel does not auto-shrink rows when you rotate text, so you may need to adjust them by hand.
Step-by-Step
Method 1: Rotate the text direction (sideways or vertical)
- Open the sheet and click and drag to select the cells containing the names. To rotate an entire column heading row, select that row of cells rather than the whole row, so you do not rotate unrelated data.
- Go to the Home tab. In the Alignment group, find the Orientation button (it looks like a slanted letter beneath a small arrow). Menu names and icons can differ slightly by Excel version, device, and region, so look for the alignment area of the ribbon if yours is laid out a little differently.
- Click Orientation. A small gallery appears with options including Angle Counterclockwise, Angle Clockwise, Rotate Text Up, Rotate Text Down, and Vertical Text.
- Pick one. Angle Counterclockwise tilts the text up to the left (bottom-left to top-right), which is the usual choice for long names sitting above narrow columns. Rotate Text Down reads top to bottom. Vertical Text stacks the letters with no tilt.
- For a precise angle, click Format Cell Alignment at the bottom of that gallery. In the Alignment tab of the Format Cells dialog, drag the Degrees control or type a value between -90 and 90. A setting of 45 is a common middle ground.
- Adjust the row height so the angled text is not clipped. With the cells still selected, go to Home > Format > AutoFit Row Height and then widen the column by dragging its right border in the column header.
- Set horizontal alignment to Center and vertical alignment to Bottom in the same Alignment group for a tidy header row where every name sits on the same baseline.
Method 2: Turn a row of names into a column (transpose)
- Select the cells holding the names and press Ctrl+C (Cmd+C on Mac). If the names include formulas, copy them normally; if you only want the resulting text, paste as values later.
- Click the first cell where you want the rotated list to begin. Make sure the destination area is empty: Paste Special > Transpose overwrites whatever is in the cells it lands on.
- Right-click the destination cell and choose Paste Special (or use Ctrl+Alt+V; on Mac, Ctrl+Cmd+V). In the dialog, tick Transpose and click OK. A single-column list becomes a single row, and the reverse.
- If you need the transposed names to update automatically when the source changes, use a formula instead: in the destination cell type
=TRANSPOSE(A1:H1)(replace the range with yours) and press Enter. In Excel for Microsoft 365 and the web app this spills into the neighboring cells on its own. In older versions you must select the whole destination range first, type the formula, and confirm with Ctrl+Shift+Enter to enter it as an array. - Check the result. Transposing swaps row and column positions, so a name in A1 lands in the first position down the new column. Delete the original block only after you have verified the copy looks right.
Method 3: Rotate a list of names end to start
- If you simply want the last name first, add a helper column beside the names and fill it with a sequence of numbers 1 to N using the fill handle.
- Select the names plus the helper numbers, then use Data > Sort, choosing the helper column and Largest to Smallest. This reverses the order without retyping anything. Delete the helper column afterwards.
Common Mistakes
Selecting whole rows instead of the header cells. Rotating an entire row also rotates any data underneath it, and row height blows up across the sheet.
Expecting AutoFit to fix everything. AutoFit adjusts row height, but narrow columns still clip angled text unless you widen them. Sometimes the fastest fix is a shorter label plus a full name in a note.
Pasting transposed data over existing cells. Paste Special does not warn you before overwriting. Use Undo (Ctrl+Z) immediately if you land somewhere wrong.
Forgetting the merged-cell limit. Transpose does not work if the copied range contains merged cells, and the error is vague. Unmerge first.
Assuming rotation carries over to printing cleanly. Angled text can overflow the print area. Preview with File > Print before sending it anywhere.
Confusing Excel's rotation with wrapping. Wrap Text (also in the Alignment group) keeps text horizontal and breaks it onto multiple lines. Rotation changes the angle. Turning on both can look messy.
Tips
- Copy the format you like with the Format Painter: format one header cell, then click the brush icon and drag across the rest.
- Keep the header row frozen with View > Freeze Panes so rotated names stay visible while you scroll.
- Use a consistent angle across all header cells. Mixed angles look accidental, not designed.
- For diagonal corner headers where a cell shares a row and a column label, type the row label, press Alt+Enter (Mac: Ctrl+Option+Enter) to insert a line break, type the column label, then apply an angle and right-align.
- If you rotate names for a chart, remember axis labels follow the chart's own formatting, not the worksheet cell formatting. Format the axis labels separately.
Troubleshooting
The Orientation button is greyed out. The sheet is likely protected. Go to Review > Unprotect Sheet and try again. If a password is required, ask whoever created the file.
The text disappears or looks cut off. The column is too narrow and the row too short. Width the column first, then run AutoFit Row Height. Also check that the cell is not set to shrink to fit, which fights rotation.
Transpose throws a #VALUE! error. The source range probably contains merged cells or the destination selection is the wrong shape. Unmerge the source, then try the formula again in a single cell.
Transposed names show stripped formatting. Paste Special > Transpose pastes values and basic formatting only. Reapply fonts, borders, and fills, or use Paste Special > All and then transpose the copy if you need full fidelity.
Numbers or dates turn into odd values after transposing. Transpose can shift date formats. Reset the cell format to Date via Home > Number Format.
Redo does not exist or the change was lost. If you closed the workbook, the rotation is saved, but the undo history is not. Reapply the Orientation setting from scratch.
Frequently Asked Questions
Can I rotate text more than 90 degrees?
No. Excel allows angles from -90 to 90 degrees. For 180-degree reversal, use a rotated shape or reverse the character order manually.
Why does my rotated header overflow the printout?
Angled text needs extra vertical space. Increase row height further and check the page layout in Print Preview before printing.
Does rotating text change the data?
No. Orientation only changes how the text is displayed. The underlying value, sorting, and formulas are unaffected.
Can I rotate names in Excel for the web?
Yes for basic angles and Vertical Text. The full Format Cells alignment dialog with a custom degree control is available in the desktop app, so use that if you need an exact angle.
What is the difference between rotating and transposing?
Rotating turns the text's angle. Transposing swaps the arrangement, so a row of names becomes a column. They solve different problems.
Will rotated names sort correctly?
Yes. Sorting works on the cell value, not the visual angle, so alphabetical order is preserved.