Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Excel Tutorial
  • Excel Formulas
  • Excel Shortcut Keys
  • Data Analysis in Excel
  • Formatting in Excel
  • Excel Workbooks
  • Statistical Functions
  • Data Visualization in Excel
  • Pivot Tables in Excel
  • MS Excel Quiz
  • Excel Interview Questions
  • Advance Excel
Open In App
Next Article:
How to Alphabetize in Google Sheets - 4 Easy Methods
Next article icon

How to alphabetize in Excel: sort columns and rows

Last Updated : 23 Jun, 2024
Comments
Improve
Suggest changes
Like Article
Like
Report

How to Alphabetize in Excel - Quick Steps

  • Open MS Excel
  • Select Data
  • Go to the Data Tab >> Click on "Sort & Filter"
  • Select "A to Z"

In Excel, alphabetizing your data can make finding information much easier. Whether you're organizing names, dates, or any other information, sorting columns and rows alphabetically helps in quickly arranging data from A to Z or Z to A. This process is essential for anyone handling lists or databases, as it allows for efficient data management and analysis. Imagine effortlessly arranging your spreadsheets to perfection, from A to Z, with just a few clicks. In this post, we will explore the power of the sort Excel data feature to sort alphabetically in Excel, including tips and tricks to alphabetize columns in Excel effortlessly.

How-to-alphabetize-in-Excel--sort-columns-and-rows-(1)
How to alphabetize in Excel?

Table of Content

  • How to Alphabetize in Excel: Sort Columns and Rows
  • How to Sort Data Alphabetically in Excel
  • How to add Filter and Alphabetize in Excel
  • How to Sort Multiple Columns in Alphabetical Order
  • How to Sort Rows Alphabetically in Excel
  • How to Alphabetize Each Row Individually in Excel With Formula
  • How to Sort Each Column Alphabetically in Excel with formula
  • How to alphabetize in Excel by last name

How to Alphabetize in Excel: Sort Columns and Rows

In Excel, the A-Z or Z-A buttons, the Sort function, and the filter are the three primary methods for sorting alphabetically. Details on each method are provided in the sections below.

How to Sort Data Alphabetically in Excel

In Excel sorting comes in various ways, you can alphabetize data in Excel by last name, by alphabet, numbers, date, or time . Now, this article is more concerned about sorting by alphabet in Excel. Let's begin to learn, how can we sort data alphabetically in Excel.

In the very first step, we need to take a sample through which we can easily learn. Let's take a random record of a company's employee name and their age. Here, the names of the employee are not arranged in alphabetical order.

Alphabetize in Excel
Data for Alphabetizing

Step 1: Select a Cell

Select a cell in the column you want to sort. So, here we selected cell A2.

Alphabetize in Excel
Select a Cell

Step 2: Go to the Data Tab

Now click on the Data tab, and then go to the Sort & Filter group.

Alphabetize in Excel
Go to the data Tab

Step 3: Sort in Ascending Order

After coming to the sort group, we have two options, the first is to quickly sort in ascending order and the other is to sort in descending order.

In this example, let's sort in ascending order, so we have to click A to Z command in Excel that sorts A to Z or smallest number to largest.

Alphabetize in Excel
Sort in Ascending

Step 4: Make Data in descending order

After selecting A to Z our data get sorted in alphabetical order. You can also try the Z to A option if you want an alternate result.

Alphabetize in Excel
Make in Descending

Step 5: Click on "A-Z" or Descending

Click either A-Z to sort ascending or Z-A to sort descending

Alphabetize in Excel
A-Z, Z-A Sort

Step 6: Go to the Home Tab and click Sort and Filter

Additionally, the Home tab > Editing group > Sort & Filter provides access to the same tools.

Now you can see we have sorted this data in alphabetical order in only 4 steps. So this is one of the simplest things you can do in your Excel. Also, you can arrange your data by numbers, color, time or date, symbols, etc.

Alphabetize in Excel
Click on "Sort and Filter"

How to Add Filter and Alphabetize in Excel

Excel may also be quickly sorted alphabetically by adding a filter. The advantage of this approach is that it only requires one time of setup; after applying the auto filter, all columns may be sorted with a single mouse click.

Step 1: Select the column Headers

Select desired column headers

Step 2. Go to the Home Tab and click on "Sort & Filter"

Click Sort & Filter > Filter in the Editing group on the Home tab.

Alphabetize in Excel
Go to the Home Tab >>Click "Sort & Filter"

Step 3: Click on drop-down arrow

Each column's header will include a small drop-down arrow. For the column you want to put in alphabetical order, click the drop-down arrow, and select Sort A to Z to sort in ascending order.

Alphabetize in Excel
Filter and Alphabetize

Step 4: Preview Results

The column is immediately alphabetized, and a tiny upward pointing arrow on the filter button denotes the order of sorting (ascending).

Alphabetize in Excel
Result

Choose Sort Z to A from the filter drop-down menu to reverse the order.

How to Sort Multiple Columns in Alphabetical Order

Use the Excel Sort function if you want to alphabetize data across many columns because it allows you more control over the sorting of your data.

As an example, we will arrange the entries alphabetically first by Full Name, and then by Department.

Alphabetize in Excel
Dataset

Step 1: Choose the Table

Choose the whole table that you wish to sort

Step 2: Go to Data Tab and Click on "Sort & Filter"

Click the Sort button, On the Data tab, in the Sort & Filter group

Step 3: Choose Sort On Values

The initially created sorting level will be displayed in the Sort dialogue box, Choose Sort On - Values and Order - A to Z

Alphabetize in Excel
Sort dialogue box

Step 4: Click on Add Level

Select the options for a different column by clicking the Add Level button to add the following level. In this example, let's sort the Department column alphabetically, A-Z.

Alphabetize in Excel
Add Level

Step 5: Sorted Alphabetically

Your data will be sorted by Excel in the designated order. As shown in the following screenshot, First by Full Name then by Department.

Alphabetize in Excel
Alphabetically sorted data

How to Sort Rows Alphabetically in Excel

You might want to order your data alphabetically across rows if it is laid out horizontally. The Excel Sort tool can also be used for this.

Step 1: Select the Range

Decide the range you wish to sort by

Step 2: Go to the Data Tab and click on Sort & Filter

Click Sort in the Sort & Filter group under the Data tab

Step 3: Click on "Options" button

Click the Options button in the Sort dialogue box

Step 4: Select "Sort Left to Right" and click "Ok"

Select Sort left to right in the brief Sort Options window that displays, then click OK to return to the Sort.

Alphabetize in Excel
Sort Left to Right

Step 5. Choose the Row Number

Choose the row number you want to alphabetize from the Sort by drop-down menu, Click OK.

Alphabetize in Excel
Sort dialogue box

Step 6: Review Changes

As a result, our table's first row is organized alphabetically, and the remaining data is altered to reflect this.

Alphabetize in Excel
Result

How to Alphabetize Each Row Individually in Excel With Formula

If the amount of rows is manageable, you can sort them one by one. This would be a huge time waster if there were hundreds or thousands of rows. Formulas accomplish the same task considerably more quickly.

Step 1: Select the Cell

Step 2: Apply the formula

Apply the array formula below to sort each row alphabetically

" =INDEX($B1:$D1, MATCH(COLUMNS($B1:B1), COUNTIF($B1:$D1, "<="&$B1:$D1), 0)) "

Just keep in mind that it's an array formula, Thus should be ended with CTRL+SHIFT+ENTER

Alphabetize in Excel
Alphabetize Each Row Individually

How to Sort Each Column Alphabetically in Excel with formula

You may easily use the method to alphabetize each column individually if you are working with independent subsets of data that are arranged vertically in columns. 

Step 1: Open MS Excel

Step 2: Select the Cell

Step3 : Use Formula

" =INDEX(A$2:A$5,MATCH(ROWS(A$3:A3),COUNTIF(A$2:A$5,"<="&A$2:A$5),0)) "Just keep in mind that it's an array formula, Thus should be ended with CTRL+SHIFT+ENTER
Alphabetize in Excel
Sort Each Column Alphabetically

How to Alphabetize in Excel by last name

To sort data in Excel by the last name, perform the following steps:

Step 1: Enter Data

Let us take the sample dataset.

Alphabetize in Excel
Enter Data

Step 2: Extract First Name

Extract the first name in the cell C2, by using the formula:

" =LEFT(A2,SEARCH(" ",A2)-1) "

Step 3: Extract Second Name

Extract the last name in the cell D2, by using the formula:

" =RIGHT(A2,LEN(A2)-SEARCH(" ",A2,1)) "

Step 4: Concatenate

Concatenate the parts in the reverse order in E2, by using the formula:

" =D2&", "&C2 "
Alphabetize in Excel
Concatenate

Step 4: Right-click and Choose Paste option

Given that we're sorting the names alphabetically rather than by formulas, we should transform them into values. To do this, highlight all the cells containing formulas (E2:E6) and copy them by pressing Ctrl + C. Then, right-click on the highlighted cells, choose Paste Options, and select Values, followed by pressing the Enter key.

Alphabetize in Excel
Right-click and Choose Paste option

Step 5: Select the Cell and Go to the Data Tab

Select any cell in this column and then go to the Data Tab in the Sort & Filter option and click the A to Z or Z to A button depending upon your need. Let us take the ascending order for example.

Alphabetize in Excel
Select the Cell >> Go to the Data Tab

Conclusion

Alphabetizing data in Excel isn't just about organization; it's about optimizing your workflow and saving valuable time. By mastering the sort function in Excel and effectively alphabetizing columns, you streamline data management, enhance clarity, and boost productivity effortlessly. Embrace these powerful techniques to transform your spreadsheets into well-structured resources that drive efficiency. Analyze all the ways of sorting Excel data and go through your desired way to alphabetize data in Excel. Besides following the steps you can also


Next Article
How to Alphabetize in Google Sheets - 4 Easy Methods

D

deepaman07ad
Improve
Article Tags :
  • Excel
  • News
  • Microsoft Office
  • Excel-functions
  • ExcelGuide

Similar Reads

  • How to Alphabetize in Google Sheets - 4 Easy Methods
    How to Sort Data Alphabetically in Google Sheets - Quick StepsSelect the range you want to sort (e.g., a column of names).Click on Data Tab>>Choose Sort rangeSelect either A-Z (ascending) or Z-A (descending) order.Organizing data efficiently is essential, especially when managing large dataset
    13 min read
  • How to Add a Column in Excel: Step-by-Step Guide
    Need to organize your data better in Excel but unsure how to add a column without disrupting your existing setup? Whether you’re working with a simple list or a complex table, inserting columns is a fundamental skill that increases productivity and keeps your data structured. This guide covers 4 eas
    6 min read
  • How to Make a Column Chart in Excel
    Column Charts provide advanced options that are not available with some other chart types such as trendlines and adding a secondary axis. This tutorial will walk you through the step-by-step process of creating a column chart in Microsoft Excel. Column charts are used for making comparisons over tim
    7 min read
  • How to Alphabetize in Google Docs
    How to Alphabetize in Google Docs - Easy Quick StepsOpen Google DocsSelect the DocumentGo to Extensions >> Add-OnsInstall "Sorted Paragraphs"Alphabetize the TextWondering how to alphabetize in Google Docs? Alphabetizing your lists or paragraphs in Google Docs can make your documents more organ
    6 min read
  • How to Apply Color to Alternate Rows in Microsoft Excel
    Microsoft Excel is a spreadsheet editor offered by the Microsoft 365 Suite which allows users to create, and edit their sheets with the help of the exciting features offered by MS Excel. While creating or editing a sheet providing a concise view of your sheet is a good way to gain attention from oth
    7 min read
  • How to AutoFit in Excel? - Change the Column Width and Row Height
    AutoFit is a feature in Excel that helps you to quickly adjust the row height or column width so that your data/text fits completely into the cell. Also, In AutoFit you don't have to manually specify the row height and column width. It will Automatically figure out how much expansion is needed. to f
    7 min read
  • How to read Excel file and select specific rows and columns in R?
    In this article, we will discuss how to read an Excel file and select specific rows and columns from it using R Programming Language. File Used: To read an Excel file into R we have to pass its path as an argument to read_excel() function readxl library. Syntax: read_excel(path) To select a specific
    2 min read
  • How to Delete Blank Columns in Excel
    Empty columns in your Excel spreadsheet can make it look messy and also look unprofessional. Now, whether you are doing a budget analysis, sorting data, or making a report, removing blank columns is a way to make your report professional and cleaner. Now, if you are new to MS Excel and want to know
    5 min read
  • How to Sort Data by Color in Excel?
    Sorting Data By Color allows us to segregate the data cells of a specific color. There can be many ways to sort by color like sorting by Cell color, sorting by Font color, etc. We can also add multiple levels in sorting data by color. Sorting by Color makes analysis very easy and time-saving. Sort b
    3 min read
  • How to Sort by Date in Excel?
    Excel provides various types of sorting formats e.g. “sort A to Z”, “Sort Z to A”, “Sort by color” and “Sort by date” etc. Sorting in Excel is nothing but arranging data into some meaningful order to make it easier to understand, analyze, or visualize. Here, we will be discussing how to sort by Date
    6 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences