Skip to main content

How to alphabetize data in an Excel spreadsheet

Microsoft Excel is as good at working with text as it is with numbers, giving you the ability to manipulate both kinds of data in the ways that make the most sense for your needs. The ability to easily alphabetize data in Excel is a prime example.

Difficulty

Easy

Duration

5 minutes

What You Need

  • Microsoft Excel

Using the alphabetize buttons

The easiest way to alphabetize data in Excel is to use one of the simplified sorting buttons located under the Data tab in the menu at the top of the spreadsheet.

Step 1: These buttons default to either an A-Z or a Z-A sorting order and can either sort a single column or sort multiple columns in a table. In the latter case, the tool defaults to sorting by the left-most column.

Simplified sort buttons in Microsoft Excel.
Image used with permission by copyright holder

Step 2: To sort using one of the buttons, select your column or table. In this case, we're using the second table in the sample spreadsheet.

Selecting a tablet in Microsoft Excel.
Image used with permission by copyright holder

Step 3: Click the A-Z button. This will alphabetize the table by the contents of the First Name column. You could also sort in reverse order by using the Z-A button.

Data alphabetized by first column in Microsoft Excel.
Image used with permission by copyright holder

Alphabetize using the Sort command

If you want more control over how your data is alphabetized, use the Sort command.

Step 1: Select your table and then click the Sort button. This will open the Sort dialog box. By default, the tool will sort by the left-most column in A-to-Z order, and it will assume you have data headers that should be used in the sorting process. If you don't have headers, then deselect My data has headers.

Selecting a table and using the Sort button in Microsoft Excel.
Image used with permission by copyright holder

Step 2: Click the Options button. Here, you can choose whether your data is case sensitive and whether to sort top to bottom or left to right.

Sort options in Microsoft Excel.
Image used with permission by copyright holder

Step 3: In our example, we're going to sort by Location and then by Last Name. To do so, we'll select Location in the first Sort by drop-down box. Then, we'll click Add Level to select Last Name from the drop-down box. You can also use the Delete Level and Copy Level options as necessary.

Sorting options selected in Microsoft Excel.
Image used with permission by copyright holder

Step 4: Click OK when finished making your selections. Your data will now be sorted by Location first and then by Last Name.

Table sorted by options in Microsoft Excel.
Image used with permission by copyright holder

For more on how to use Excel, check out our guide on how to password protect an Excel file.

Editors' Recommendations

Mark Coppock
Mark has been a geek since MS-DOS gave way to Windows and the PalmPilot was a thing. He’s translated his love for…
Here’s how to quickly and easily convert a PDF to Excel
Spreadsheet on a laptop on a table.

Just because your co-worker sent you a PDF file instead of the Excel document you wanted doesn't mean you're actually stuck with it. In this guide, we'll teach you how to convert a PDF into an Excel document using a few quick and easy steps. We'll even teach you a few different ways to do it.

If you don't want to go to the trouble of converting the PDF (whether password-protected or not) and would rather just edit it as is, we have a guide to the best PDF editors, too.

Read more
How to use Microsoft Copilot in Teams, Powerpoint, Excel, and more
Using Windows 11 copilot to summarize a document.

The Windows 11 Copilot AI is Microsoft's big push to bring modern artificial intelligence to its flagship operating system — and it goes far beyond the early integrations of ChatGPT through Bing Chat. This isn't your granddad's Clippy, it's a whole new way of augmenting Windows with truly smart functions.

Here's how to use the Microsoft Copilot AI in Windows 11 to make your life easier and more efficient.

Read more
How to use ChatGPT to write Excel formulas
A laptop opened to the ChatGPT website.

Not everyone is an Excel spreadsheet expert and you may not always know how to write the formulas you need for a given data set. If you're having trouble figuring out the right formula for your data and computation needs, there's a new option that can help you write up that formula in just a few steps.

That option is ChatGPT, the buzzy, new AI chatbot from artificial intelligence company OpenAI. And among everything else ChatGPT can do, it can also write Excel formulas. In this guide, we'll show you how to use it to get the Excel formulas you need. Let's get started.

Read more