Cellwise Start free

Data, filters, tables and pivots shortcuts

Sort shortcuts in Excel

Quick answerOn Windows, click a cell in the column and press AltA, S, A to sort A to Z (smallest to largest) or AltA, S, D for Z to A. AltA, S, S opens the Sort dialog for several columns. On a Mac, CommandShiftR opens the Sort dialog.

The keys

ShortcutWindowsMac
Sort smallest to largest, or A to ZData tab KeyTips. Not in Microsoft's Mac list.AltA, S, A or AltDown arrow, S—No Mac shortcut in Microsoft's list
Sort largest to smallest, or Z to AData tab KeyTips. Not in Microsoft's Mac list.AltA, S, D or AltDown arrow, O—No Mac shortcut in Microsoft's list
Open the Sort dialogAltA, S, S or AltH, S, UCommandShiftR
Reapply the filter and sort after the data changes How to: Excel filter shortcut Not in Microsoft's Mac list. It does not reapply a sort by rows.CtrlAltL—No Mac shortcut in Microsoft's list

Checked against Microsoft's official lists on . Where Microsoft lists a key for one platform only, the other column says so instead of guessing.

Sort by several columns

Open the Sort dialog and add a level for each column: region first, then date, for example. Microsoft's alternative Windows route is AltH, S, U. The guide on sorting by multiple columns has the full steps and a formula version with SORTBY.

From the filter menu

With filters on, select a header, press AltDown arrow to open its menu, then S for ascending or O for descending. After the data changes, CtrlAltL reapplies the sort and filter (it does not reapply a sort by rows).

When sorting goes wrong

Why a shortcut sometimes does nothing

KeyTips change with the language

Alt sequences such as AltH, O, I are ribbon KeyTips: press Alt and the letters appear on screen. They come from the English ribbon. In another language, or when an add-in adds a tab, the letters can differ, so read them off the screen rather than memorizing them.

Related shortcuts

ShortcutWindowsMac
Open the drop-down list or filter menu of the cell How to: Excel filter shortcut Works on filter buttons, PivotTable fields and data validation lists.AltDown arrowOptionDown arrow
Turn filters on or off How to: Excel filter shortcut Turning filters off also clears every filter, so all rows show again.CtrlShiftLCommandShiftF or ControlShiftL
Create a table How to: Create table shortcut in Excel On a Mac, Cmd+T switches $ signs instead while you are editing a formula.CtrlT or CtrlLCommandT or ControlT

FAQ

What is the shortcut to sort A to Z in Excel?

Alt, A, S, A on Windows. With filters on, Alt+Down then S from the header also works.

What is the sort shortcut on a Mac?

Cmd+Shift+R opens the Sort dialog. Microsoft lists no one-press A to Z key for the Mac.

Can I sort with a formula?

Yes, in Excel 365 and 2021: SORT and SORTBY return a sorted copy that updates when the data changes.

Related guides

Related functions

In the glossary: SortHeader row

All data, filters, tables and pivots shortcutsAll Excel shortcutsPrintable sheet