Select a single cell inside your list, go to Data > Sort & Filter > Sort A to Z, and Excel reorders the rows around it. This works in Excel for Microsoft 365, Excel 2021, 2019, and 2016 on Windows and Mac; the steps and labels below are identical across modern desktop builds.
Sort a List Alphabetically in Seconds
- Click any single cell inside the column you want alphabetical, such as a name in the Name column.
- Go to Data > Sort & Filter and click Sort A to Z. Excel detects the surrounding table and opens the Sort Warning if it isn't sure what to include.
- If the Sort Warning appears, choose Expand the selection, then click Sort. This keeps every row intact and moves the whole record, not just the one column.
- Confirm the list is now alphabetical from top to bottom and that neighboring cells still line up with each name.
If a header row sits above your data, Excel normally keeps it at the top. When it doesn't, the header gets sorted into the body—undo with Ctrl + Z, then use the Sort dialog and tick My data has headers.
Use the Sort Dialog for Headers, Multi-Level Sorts, and Missing Options
When you need more control, the full dialog exposes settings the one-click buttons hide.
- Select any cell in the range or table, then open Data > Sort & Filter > Sort.
- Confirm My data has headers is checked so column names appear in the Sort by list instead of "Column A".
- Set Sort by to the text column, Sort On to Cell Values, and Order to A to Z for ascending or Z to A for descending.
- To break ties—say, sort by Last Name, then First Name—click Add Level and set a second condition.
- Click OK. The status bar and the visible order confirm the result; check the first and last rows to be sure nothing detached.
A true alphabetical sort is ascending. Descending gives you Z to A, useful for reverse lookups, but most people wanting "alphabetical" should pick A to Z.
Why the Sort Buttons Are Missing or Grayed Out
Several situations block sorting, and each has a distinct cause.
Protected sheets and locked cells
If Sort is grayed out, the worksheet may be protected. Go to Review > Unprotect Sheet and supply the password if you have it. Sorting must be permitted in the protection options for it to enable.
Merged cells
Merged cells in the sort range trigger the error "This operation requires the merged cells to be identically sized." Select the range, go to Home > Merge & Center, and choose Unmerge Cells. Rebuild the layout with headers instead, then sort.
Excel asks to expand the selection
When one column is selected but neighbors aren't, the Sort Warning appears. Choosing Expand the selection protects related data. Choosing Continue with the current selection sorts only that column and breaks row alignment—pick this only when the column is truly independent.
Blank rows and stray formatting
A blank row can split your list into two ranges, so Excel sorts only part of it. Delete empty rows first, or press Ctrl + T to convert the range into a table, which keeps the whole block together.
Alphabetize Data That Isn't a Clean List
Sort a single column safely
If the column truly stands alone—no matching data in adjacent columns—select the cells and use Sort A to Z directly. The warning is harmless here; choose Continue with the current selection.
Sort by last name inside a single cell
When names appear as "Doe, Jane" in one column, a normal A to Z sort already works because the last name leads. For "Jane Doe" format, add a helper column and use a formula to extract the surname:
=RIGHT(A2,LEN(A2)-FIND(" ",A2))
Fill it down, then sort the helper column A to Z. Delete the helper afterward if you don't need it.
Case-insensitive reality
Excel's alphabetical sort ignores case, so "apple" and "Apple" sort together rather than into separate groups. Numbers stored as text can also sort oddly—"10" before "2"—so convert numeric text to real numbers if the order looks wrong.
Sort Across Tables, Filters, and Custom Orders
Sorting works inside an Excel table created with Ctrl + T, and filters on the header row sort the visible data correctly as long as filters are active on the table.
For a nonstandard order—Small, Medium, Large—don't rely on A to Z. Open Data > Sort, and under Order choose Custom List to define your own sequence. This works in all current desktop editions.
On Mac, the paths are the same under Data > Sort, though the ribbon label may read Sort & Filter identically. Microsoft's sort reference covers the full option set if you hit an edge case beyond these steps.
Frequently Asked Questions
Does sorting A to Z change my formulas?
Generally no—relative references adjust as rows move, so totals and lookups usually keep working. Absolute references to fixed cells stay put, which can produce unexpected results; verify a few key formulas after a large reorder.
Can I sort by more than one column at once?
Yes. Use Data > Sort > Add Level to stack conditions, such as Department first and Last Name second. A single A to Z click handles only the active column.
Why does my list sort with the header row mixed in?
Excel didn't recognize the header. Undo, then open the full Sort dialog and check My data has headers so the first row stays fixed at the top.
What if I only want to sort part of the sheet?
Select just that range, then sort. Choosing Continue with the current selection on the warning keeps unrelated rows untouched; confirm the boundaries before you click.