Excel TVExcelTV

How to Alphabetize in Excel: Sort Data Without Breaking Rows

Illustration of an Excel list changing from unsorted rows to an A-to-Z alphabetical order

If you need the shortest possible answer, here it is: select the full range, go to Data > Sort, choose the column you want to alphabetize, and sort A to Z. If Excel asks whether to expand the selection, say yes. That keeps every row together.

This guide shows you the fastest in-place sort, the safe way to sort tables, the right fix for multi-column lists, and when to use the SORT function instead of changing the sheet directly.

Key takeaways

If you only need the short version, sort the full range and keep the rows together. Microsoft says Excel supports 1,048,576 rows and 16,384 columns, so the real limitation is usually selection discipline, not worksheet size. Source: Excel specifications and limits

  • Alphabetizing in Excel is just a sort operation on a selected column or table.
  • If the data has more than one column, sort the whole range so rows stay intact.
  • Use Custom Sort when you need more than one sort key, such as department first and then name.
  • Use SORT when you want a live, formula-driven alphabetical result in another area of the workbook.
  • If the sort looks wrong, clean spaces, merged cells, and text-number mismatches before trying again.

Stat block: Microsoft says Excel worksheets can hold 1,048,576 rows and 16,384 columns. That matters because sorting in Excel is about reordering records inside a fixed grid, not changing the size of the worksheet itself. Source: Excel specifications and limits and Sort data in a range or table in Excel.

Illustration of an Excel list changing from unsorted rows to an A-to-Z alphabetical order

How do I alphabetize one column in Excel?

The fastest way is to click any cell in the column and use Data > Sort A to Z. Microsoft’s help covers alphabetical and custom order, so the same path works when you sort the full range. Source: Sort data in a range or table in Excel

Here is the cleanest workflow:

  1. Click a cell inside the list.
  2. Go to Data on the ribbon.
  3. Choose Sort A to Z for ascending order or Sort Z to A for reverse order.
  4. If Excel asks, choose Expand the selection.
  5. Confirm My data has headers if your first row contains labels.
  6. Click Sort.

That is usually all you need for a single list of names, products, cities, or file labels. Microsoft’s sort help describes Excel sorting data numerically, alphabetically, by priority or format, and by date and time, which is why the same workflow works for a lot of everyday cleanup tasks. See Sort data in a range or table in Excel.

If your list is already an Excel Table, the process is even simpler because Excel tends to preserve the table structure automatically. You still want to sort from inside the table so the surrounding rows do not get separated from the data you meant to keep together.

How do I sort a whole table without breaking the rows?

The safe way is to sort the entire table, not just the column you want to alphabetize. Excel sorts records row by row, and Microsoft frames sorting as a range-or-table task, which is what keeps names, dates, totals, and notes together. Source: Sort data in a range or table in Excel

Use this process when you have multiple columns of data:

  1. Click any cell inside the dataset.
  2. Go to Data > Sort.
  3. Pick the column you want to alphabetize in the Sort by box.
  4. Set the order to A to Z.
  5. Check My data has headers if the first row is labels.
  6. Click OK.

If Excel warns you about the selection, choose the option that keeps the entire range together. That is the difference between a useful sort and a broken spreadsheet.

A good habit is to keep one header row and one record per row. If your sheet has blank rows, merged cells, or mini tables inside the main list, Excel may sort only part of the data or refuse to interpret the range cleanly.

If you are also rearranging the sheet structure itself, you may want our guide on how to move columns in Excel. Sorting and moving columns solve different problems, but they often show up in the same cleanup pass.

Illustration of Excel's Custom Sort dialog used to sort by department and then name

How do I sort by more than one column in Excel?

Use Custom Sort when one column is not enough. Microsoft’s sort workflow supports multiple levels, so you can group by department first and then alphabetize names inside each group instead of flattening the whole sheet into a single list. Source: Sort data in a range or table in Excel

Here is the practical version:

  1. Click anywhere in the list.
  2. Choose Data > Sort.
  3. Set the first column in Sort by.
  4. Click Add Level.
  5. Set the second column and its order.
  6. Add more levels if needed, then click OK.

For example, if you sort by Department first and Name second, every department stays grouped while the names inside each department appear alphabetically.

That is the safest answer whenever people say, “I need to alphabetize this sheet, but I also need to keep related records together.” Excel is not doing anything magical here; it is just applying a first key and then a second key when the first one ties.

If your list contains months, weekdays, or other non-standard sequences, consider a custom list instead of pure A-to-Z order. That keeps the sort aligned with the way your team actually reads the data.

How do I sort left to right instead of top to bottom?

You can sort left to right by changing the sort orientation in the dialog. That matters on cross-tab sheets where months or categories run across columns, and Microsoft supports that layout when you switch the sort direction first. Source: Sort data in a range or table in Excel

The workflow is:

  1. Select the row or block you want to reorder.
  2. Open Data > Sort.
  3. Click Options.
  4. Choose Sort left to right.
  5. Pick the row you want to sort by.
  6. Click OK.

Most people never need this, because Excel data is usually arranged vertically. But when a worksheet has dates, months, or categories spread across columns, sorting left to right can save a lot of manual retyping.

If you are unsure whether your data should be sorted top to bottom or left to right, the answer is simple: sort top to bottom for most tables, and use left to right only when the sheet was deliberately built that way.

What should you do when Excel alphabetizes incorrectly?

The first fix is to clean the data. Bad sorts usually come from invisible formatting problems, not from the sort command itself, and Microsoft’s sort docs assume you are working with a clean, contiguous range rather than broken-up cells. Source: Sort data in a range or table in Excel

Check these common issues:

  • Leading or trailing spaces. Use TRIM to remove extra whitespace.
  • Text numbers. Convert values like 0012 or 10 if they are being treated as text.
  • Hidden characters. Use CLEAN if you pasted data from another system.
  • Merged cells. Unmerge them before sorting.
  • Partial selections. Sort the full range, not just one column.
  • Mixed data types. Make sure a column contains one kind of value, not a blend of text and numbers.

If the sort still looks wrong, ask yourself whether the list is actually a custom-order problem rather than an alphabetical problem. For example, Q1, Q2, Q3, and Q4 are not a normal A-to-Z sequence, so a custom list or helper column may be a better answer.

Another easy mistake is sorting by one column when the workbook contains related data in adjacent columns. That is the classic way to scramble names, phone numbers, or totals. When in doubt, sort the full range and let Excel carry the row with the key field.

When should you use the SORT function instead?

Use SORT when you want a live alphabetical result somewhere else in the workbook instead of changing the original data. That is a better choice for dashboards and helper views because dynamic arrays let the output update automatically as the source changes instead of forcing you to repeat the sort. Source: SORT function

A simple formula looks like this:

=SORT(A2:C100)

That sorts the range by the first column in ascending order.

If you want to be explicit, you can use:

=SORT(A2:C100,1,1)

The 1 in the third argument means ascending order. If you need descending order, use -1 instead.

Why use a formula instead of the ribbon sort?

  • You want a separate sorted view without touching the source.
  • You want the output to refresh when the source changes.
  • You are building a dashboard or report from raw data.

If you only need one quick cleanup, the ribbon sort is faster. If you want a dynamic view, SORT is cleaner.

A practical example you can follow right now

A quick example helps because it turns the theory into a repeatable pattern. Microsoft notes that Excel sorts range or table data directly, so the same click path works for customer, product, or task lists. Source: Sort data in a range or table in Excel

Suppose you have a list of customer names in column A and sales values in column B.

  • Click any cell in the list.
  • Choose Data > Sort.
  • Sort by Customer Name.
  • Choose A to Z.
  • Confirm that Excel expands the selection.

Now the customers are alphabetical, and the sales figures stay matched to the right people.

If two customers share the same name, add a second level:

  • First sort by Customer Name.
  • Then add a level for Sales Region or Order Date.

That is how you keep the result stable when the first sort key is not unique.

Common mistakes to avoid

Most sorting errors come from the sheet structure, not from alphabetizing itself. Blank rows, merged cells, and text numbers can break the row relationships Excel is trying to preserve, so a quick cleanup often fixes the issue faster than re-running the sort. Source: Sort data in a range or table in Excel

The biggest sorting mistakes are easy to prevent once you know what to watch for:

  • Sorting only one column when the data should move as a row.
  • Leaving blank rows inside the list, which can split the range.
  • Ignoring headers, which can push your labels into the data.
  • Using alphabetical sort for a sequence that is not alphabetical, like months or priority labels.
  • Forgetting that formula outputs are different from source data when using SORT.

My rule of thumb is simple: if the goal is cleanup, sort the source table; if the goal is a reusable view, use a formula. Microsoft’s sort documentation keeps the same emphasis on preserving rows inside a range or table, so the final check is always selection discipline: sort the records, not just the visible letters. Source: Sort data in a range or table in Excel

Final answer

To alphabetize in Excel, select the full list or table, use Data > Sort, and choose A to Z for the column you want to order. If the sheet has related columns, sort the entire range. Microsoft documents the same range-and-table workflow. Source: Sort data in a range or table in Excel

FAQs

Excel’s built-in sort tools cover simple alphabetical order, multi-level sorts, and left-to-right sorts, so these answers mostly come down to one habit: sort the whole record. Microsoft documents the same range-and-table workflow across its help pages. Source: Sort data in a range or table in Excel

How do I alphabetize in Excel without mixing up my rows?

Select the full data range, then use Data > Sort and choose the column you want to alphabetize. Excel will move the whole row with the sorted key as long as you sort the full range instead of a single column.

What is the fastest way to sort data A to Z in Excel?

Click any cell in the column you want to sort, then choose Data > Sort A to Z. If Excel asks whether to expand the selection, choose that option so the rest of the record stays aligned.

How do I sort multiple columns alphabetically in Excel?

Open Data > Sort, set the primary column first, then use Add Level to add a secondary column. That lets you sort by department and then by name, or any other tie-breaker order.

Why does Excel sort my names incorrectly?

The usual causes are leading spaces, text numbers, hidden characters, merged cells, or sorting only one column instead of the whole table. Cleaning the data usually fixes the problem.

Further reading

If you want to keep improving the layout of the same worksheet, the next useful post is how to move columns in Excel. It pairs well with sorting because both tasks help you reorganize a sheet without rebuilding it from scratch.

Written by

Allen Hoffman

Contributor, Excel TV

  • Lookup Functions
  • Data Manipulation
  • Keyboard Shortcuts
  • Workflow Efficiency
Allen Hoffman is a contributor to Excel TV focused on practical Excel techniques for everyday data work. His tutorials cover topics including lookup functions, data manipulation, cell formatting, keyboard shortcuts, and workflow efficiency. Allen's writing aims to make common Excel tasks clearer and faster, with step-by-step guidance suited to analysts and professionals who use Excel regularly in their work.

Read more articles by Allen Hoffman

Editorial standards

Fact Checking & Editorial Guidelines

Every article on Excel TV is held to a published editorial standard. The goal: accurate, current, and useful — without filler.

  1. Expert review.Drafts on technical Excel topics are reviewed by a contributor with hands-on, working knowledge of the feature being covered.
  2. Source validation.Claims about Excel behavior are tested in current Microsoft 365 builds. Third-party product claims are sourced from the vendor's own documentation.
  3. Disclosure.Affiliate links, sponsorships, and any commercial relationships that influenced a piece are disclosed in-line and at the foot of the article.
  4. Updates.Articles are revisited when Microsoft ships changes that affect the content. The most recent revision date is shown on every post.

Spot a problem? Email editor@excel.tv and we will look at it.

Subject-matter review

Reviewed by Subject Matter Experts

Technical Excel articles are reviewed by contributors with verifiable, hands-on experience in the topic — not generalist editors.

  • Qualified reviewers.Reviewers include Microsoft Excel MVPs, working business-intelligence practitioners, and Excel TV editorial staff. See each author's page for credentials.
  • Current to a known Excel build.Procedural articles state which Excel version they were validated against. Where Microsoft has since changed behavior, the article carries an inline update note.
  • Clarity check.Reviewers verify steps are reproducible by a reader at the assumed skill level — not just technically correct in a vacuum.

Want to contribute or review for Excel TV? See the about page.