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

Creating a Column Chart using S&P 500 data with Positive and Negative Colors in Excel

Creating a Column Chart using S&P 500 data with Positive and Negative Colors in Excel

Five Methods for Creating Running Totals in Excel

Five Methods for Creating Running Totals in Excel

Mastering Conditional Formatting in Excel with Copilot: A Step-by-Step Guide

Mastering Conditional Formatting in Excel with Copilot: A Step-by-Step Guide

Copilot for Excel - Is it Accurate? 11 Tests Performed

Copilot for Excel - Is it Accurate? 11 Tests Performed

March 14, 2024 - Beginner’s Guide to Microsoft Copilot

March 14, 2024 - Beginner’s Guide to Microsoft Copilot

Chris Menard

Chris Menard is a certified Microsoft Trainer (MCT) and works as a full-time Trainer at BakerHostetler - one of the largest law firms in the US. He runs a YouTube channel with 900+ technology videos that cover various tools such as Excel, Word, Zoom, Teams, Gmail, Google Calendar, and Outlook. To date, the channel has helped over 20 million viewers. Menard also does 2 to 3 public speaking events every year, presenting at the Administrative Professional Conference (APC), the EA Ignite Conference, the Support Staff Conference, the University of Georgia, and CPA conferences. You can connect with him on LinkedIn at https://chrismenardtraining.com/linkedin or watch his videos on YouTube at https://chrismenardtraining.com/youtube.

Categories