How to Sort Data in Excel Using a Shortcut (7 Methods)

Method 1 – Excel Shortcut for Single Column Sorting

In this method, we’ll demonstrate how to sort a single column using Excel shortcuts. Let’s assume we have a dataset with four columns: Employee, Working Hour, Region, and Salary.

Excel Shortcut for Single Column Sorting

Steps

  • Select a cell in the column you want to sort (e.g., Cell C5).

Excel Shortcut for Single Column Sorting

  • Press Alt + A S D to sort in descending order.

Excel Shortcut for Single Column Sorting

  • To sort in ascending order, press Alt + A S A.

Excel Shortcut for Single Column Sorting

Read More: How to Sort Data by Value in Excel


Method 2 – Sort Multiple Columns Using Excel Shortcut

Now, let’s work with multiple columns.  We will try to sort the Working Hour & Region columns.

Sort Multiple Columns Using Excel Shortcut

Steps

  • Select a cell in your dataset (e.g., Cell C5).

Sort Multiple Columns Using Excel Shortcut

  • Press Alt + ASS to open the dialogue box. Ensure My data has headers is selected.

Sort Multiple Columns Using Excel Shortcut

  • Change the “Sort by menu to your desired column (e.g., Working Hour).

Sort Multiple Columns Using Excel Shortcut

  • Add a level to insert the second column (e.g., Region).
  • Choose sorting criteria and order options.

Sort Multiple Columns Using Excel Shortcut

  • Select OK to automatically sort the data.

Sort Multiple Columns Using Excel Shortcut

You can see the Working Hour column is sorted in ascending order and then the Region column is sorted in A-to-Z order.

Read More: How to Add Sort Button in Excel


Method 3 – Use of Macro to Sort Data in Excel

Steps

  • Go to the Developer tab and select Visual Basic.

Use of Macro to Sort Data in Excel

  • Insert a new module in the Visual Basic Window.
  • Enter the following code and save it:
Sub MultiColumn()
  With ActiveSheet.Sort
    .SortFields.Clear
    .SortFields.Add Key:=Range("C4"), Order:=xlAscending
    .SortFields.Add Key:=Range("D4"), Order:=xlAscending
    .SetRange Range("B4:E10")
    .Header = xlYes
    .Apply
  End With
End Sub

Use of Macro to Sort Data in Excel

  • Open the Macros window from the Developer tab.

Use of Macro to Sort Data in Excel

  • Go to the Options tab and create a shortcut key (e.g., a).

Use of Macro to Sort Data in Excel

Use of Macro to Sort Data in Excel

  • Press Ctrl + A to sort the data in ascending order.

Use of Macro to Sort Data in Excel

The Working Hour column is sorted in ascending order and the Region column is sorted in A-to-Z order.

Read More: How to Sort Data in Excel Using Formula


Method 4 – Keyboard Accelerators Shortcut for Sorting in Excel

Keyboard accelerators are also useful for sorting datasets:

Steps

  • Select a cell in the column you want to sort (e.g., Cell C5).

Keyboard Accelerators Shortcut for Sorting in Excel

  • Press the Alt key (letters will appear on your screen).

Keyboard Accelerators Shortcut for Sorting in Excel

  • Press SA for ascending order.

Keyboard Accelerators Shortcut for Sorting in Excel

  • Press the SD key for descending order.

Keyboard Accelerators Shortcut for Sorting in Excel

  • For custom sorting, press SS to open the Sort window.

Keyboard Accelerators Shortcut for Sorting in Excel

  • Add levels and select columns (similar to Method 2).

Keyboard Accelerators Shortcut for Sorting in Excel

  • Press OK to sort multiple columns together.

Keyboard Accelerators Shortcut for Sorting in Excel

Read More: How to Sort Data in Alphabetical Order in Excel


Method 5 – Sort in Excel Using the Home Tab

In this method, we’ll use the Home Tab as a shortcut to sort data.

Steps

  • Select a cell in the column where you want to sort (e.g., Cell C5).

Sort in Excel Using the Home Tab

  • Press Alt + H; some letters will appear on your screen.
  • Look at the top right corner; you’ll find additional letters.

Sort in Excel Using the Home Tab

  • Press the S key on your keyboard to open a drop-down menu.

Sort in Excel Using the Home Tab

  • Choose S to sort your data in ascending order.

Sort in Excel Using the Home Tab

  • For descending order, press O, and for custom sorting, press U.

Read More: How to Undo Sort in Excel


Method 6 – Use of Menu Key Shortcut for Sorting

Another way to sort data is by using the Menu Key. Let’s sort the Working Hour column from our previous dataset.

Steps

  • Select Cell C5.

Use of Menu Key Shortcut for Sorting

  • Press Menu key + OS to sort the column in ascending order.

Use of Menu Key Shortcut for Sorting

  • Press Menu key + OO for descending order.

  • For custom sorting, press Menu key + OU; a window similar to Method 2 will open, allowing you to select multiple columns.

Read More: How to Sort Alphanumeric Data in Excel


Method 7 – Use of Filter Drop Down Menu Shortcut for Sorting

To easily sort using the Filter option, follow these steps:

  • Select any cell in your dataset (Cell C5).

Use of Filter Drop Down Menu Shortcut for Sorting

  • Press Ctrl + Shift + L to apply the filter.

Use of Filter Drop Down Menu Shortcut for Sorting

  • Click the header of the column you want to sort.

  • Press Alt + Drop Down arrow + S for ascending order.

  • Press Alt + Drop Down arrow + O for descending order.

  • To sort by colors, press Alt + Drop Down arrow + T.

Read More: How to Sort in Ascending Order in Excel


Download Practice Book

You can download the practice workbook from here:


Related Articles


<< Go Back to Sort in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Mursalin Ibne Salehin
Mursalin Ibne Salehin

Mursalin Ibne Salehin holds a BSc in Electrical and Electronics Engineering from Bangladesh University of Engineering and Technology. Over the past 2 years, he has actively contributed to the ExcelDemy project, where he authored over 150 articles. He has also led a team with content development works. Currently, he is working as a Reviewer in the ExcelDemy Project. He likes using and learning about Microsoft Office, especially Excel. He is interested in data analysis with Excel, machine learning,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo