Excel SORT Function | Excel One Minute Quick Reference

Posted on:  10/16/2021
Excel SORT Function | Excel One Minute Quick Reference

The SORT function in Excel sorts the contents of a range or array. Example, =SORT(B2:B20). You can also sort in ascending or descending order with the SORT function. =SORT(B2:B20,,-1) would sort descending or highest to lowest. The number 1 would sort ascending, which is the default sort. The SORT function has four arguments, but only 1 is required.

SORT function in Excel

SORT function in Excel

YouTube video

Other Excel articles

Syntax for SORT function

 

=SORT(array,[sort_index],[sort_order],[by_col])

 

Arguments for SORT function

  • array - The array or range to sort - Required
  • [sort_index] A number indicating the row or column to sort by - Optional
  • [sort_order] - The order to use for sorting. 1 for ascending, -1 for descending. Default is ascending - Optional
  • [by_col] - A logical value indicating the desired sort direction; FALSE to sort by row (default), TRUE to sort by column - Optional

Versions of Excel the SORT function works in

  • Excel for Microsoft365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2021
  • Excel 2021 for Mac
  • Excel for iPad
  • Excel for iPhone
  • Excel for Android tablets
  • Excel for Android phones

Latest Excel articles

Excel Sorting Tips with Chris Menard on January 24, 2023

Excel Sorting Tips with Chris Menard on January 24, 2023

Excel - Convert Seconds to Minutes and Seconds - Watch Chris Work!

Excel - Convert Seconds to Minutes and Seconds - Watch Chris Work!

TOP 5 Excel Features Released in 2022

TOP 5 Excel Features Released in 2022

Excel 7 Easy Tips Everyone Should Know

Excel 7 Easy Tips Everyone Should Know

Excel Chart Maps used with the Geography Data Type

Excel Chart Maps used with the Geography Data Type

Excel - using the Scenario Manager to track house payments with skyrocketing mortgage rates

Excel - using the Scenario Manager to track house payments with skyrocketing mortgage rates

Chris Menard

Chris Menard is a Microsoft Certified Trainer (MCT) and is employed full-time as a Trainer for BakerHostetler, one of the nation’s largest law firms. Menard has a YouTube channel with over 900 technology videos covering Excel, Word, Zoom, Teams, Outlook, Gmail, Google Calendar, and other resources that over 15 million viewers have appreciated. Menard also does public speaking at conferences for CPAs and Administrative Professionals. Connect with Chris on LinkedIn at chrismenardtraining.com/linked or on YouTube at chrismenardtraining.com/youtube

Categories