The 3 Easiest Ways to Sort by Number in Google Sheets

Download Article
Easy ways to sort a Google Sheets spreadsheet by number
Download Article

This How.com.vn teaches you how to rearrange all the cells in a column numerically on any computer. You can quickly sort by number using the Sort Range feature in the Data tab, by creating a filter, or by creating a formula with the SORT function.

Things You Should Know

  • To sort by number in Google Sheets, start by freezing your header row and making sure your numbers are saved as numbers (not text).
  • Select the column you want to sort, then go to "Data" > "Sort range" > "Advanced range sorting options".
  • Select "Data has header row," select ascending or descending order, and then click "Sort."
Method 1
Method 1 of 3:

Sorting by Range

Download Article
  1. How.com.vn English: Step 1 Freeze your header row (if you haven't already).
    If there's a header above the numbers you want to sort, you'll want to freeze the row before sorting. To freeze the header row:
    • Click the row number on the left side of the sheet.
    • Right-click the highlighted row.
    • Select View more row actions > Freeze 1 row.[1]
  2. How.com.vn English: Step 2 Make sure your numbers are stored as numbers (not text).
    Here's how:
    • Select the numerical cells you want to sort (not including the header row—just the cells with numbers).
    • Click the Format menu at the top.
    • Select the Number menu.
    • Select a number option that best describes your data. For example, use Number for regular numbers or Currency for prices.
    Advertisement
  3. How.com.vn English: Step 3 Highlight the cells you want to sort.
    You can click the column letter above the numbers to select the entire column.
  4. How.com.vn English: Step 4 Click the Data tab at the top of Google Sheets.
    It will open a drop-down menu.
  5. How.com.vn English: Step 5 Click Sort range on the Data menu.
    This option will allow you to customize your sorting settings.
  6. How.com.vn English: Step 6 Select Advanced range sorting options.
    It's at the bottom of the menu.
  7. Step 7 Check the box next to "Data has header row."
    This ensures your header row won't get mixed up in the numbers when you sort.
  8. How.com.vn English: Step 8 Select a sorting order.
    Select A to Z to sort numbers in ascending order (lowest number at the top), or Z to A to sort in descending order.
    • Even though you're seeing "A to Z" and "Z to A," sorting with this method also works on numbers (not just letters). A is equivalent to your lowest number, and Z is the highest number.
  9. How.com.vn English: Step 9 Click Sort.
    Your numbers are now in the selected order.
  10. Advertisement
Method 2
Method 2 of 3:

Sorting with a Filter

Download Article
  1. How.com.vn English: Step 1 Make sure there's a header above your numbers.
    To sort numbers with a filter, the cell above your number list must be a header cell.
    • For example, if you're sorting a list of prices, you may want to make the header "Prices" for that column.
  2. How.com.vn English: Step 2 Make sure your numbers are stored as numbers (not text).
    Here's how:
    • Select the numerical cells you want to sort (not including the header row—just the cells with numbers).
    • Click the Format menu at the top.
    • Select the Number menu.
    • Select a number option that best describes your data. For example, use Number for regular numbers or Currency for prices.
  3. How.com.vn English: Step 3 Select the column you want to sort.
    Click the letter above the column to select all the numbers and the header row at once.
  4. How.com.vn English: Step 4 Click the Data tab and select Create a filter.
    This adds a small funnel icon to the header cell, which indicates that you can now easily sort the column.
  5. How.com.vn English: Step 5 Click the filter icon and select a sorting option.
    Select A to Z to sort numbers in ascending order (lowest number at the top), or Z to A to sort in descending order. Once you make your selection, the numbers in the column will sort in ascending or descending order.
    • Even though you see "A to Z" and "Z to A," sorting with this method also works on numbers. A is equivalent to your lowest number, and Z is the highest number.
  6. Advertisement
Method 3
Method 3 of 3:

Sorting with a Formula

Download Article
  1. How.com.vn English: Step 1 Store your numbers in a numerical format.
    If the numbers you want to sort are stored as plain text in Google Sheets, they won't sort correctly. Here's what you'll need to do:
    • Select the numerical cells you want to sort (not the header row—just the cells with numbers).
    • Click the Format menu at the top.
    • Select the Number menu.
    • Select a number option that best describes your data. For example, use Number for regular numbers or Currency for prices.
  2. How.com.vn English: Step 2 Create a formula with the SORT function.
    The syntax is =SORT(RANGE:RANGE, sort_column, TRUE/FALSE.
    • Replace RANGE:RANGE with the range you want to sort, e.g., E2:E40.
    • sort_column is the number of the column you want to sort by, based on how many columns you selected. If you're only sorting one column, the value is 1. If you're sorting multiple columns based on the numbers in the second selected column, you'd enter 2.[2]
    • To sort in ascending order, with the lowest number at the top, use TRUE. For descending order, use FALSE.
    • For example, to sort only column E (in this case, cells E2: E40) in numerical order, you'd use =SORT(E2:E40, 1, TRUE).
    • To sort the data in column D as well, based on E2:E40, you'd use =SORT(E2:E40, D2:D40, 2, TRUE).
  3. Advertisement

Expert Q&A

Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
      Advertisement

      Video

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      About This Article

      How.com.vn English: Stan Kats
      Written by:
      Professional Technologist
      This article was written by Stan Kats and by How.com.vn staff writer, Nicole Levine, MFA. Stan Kats is a Professional Technologist and the COO and Chief Technologist for The STG IT Consulting Group in West Hollywood, California. Stan provides comprehensive technology solutions to businesses through managed IT services, and for individuals through his consumer service business, Stan's Tech Garage. Stan holds a BA in International Relations from The University of Southern California. He began his career working in the Fortune 500 IT world. Stan founded his companies to offer an enterprise-level of expertise for small businesses and individuals. This article has been viewed 153,839 times.
      How helpful is this?
      Co-authors: 2
      Updated: January 31, 2024
      Views: 153,839
      Article SummaryX

      1. Open Google Sheets in a browser.
      2. Click a spreadsheet file.
      3. Select a column.
      4. Click the Data tab.
      5. Click Sort range or Sort sheet by column.
      6. Select A to Z or Z to A.
      7. Click Sort.

      Did this summary help you?

      Thanks to all authors for creating a page that has been read 153,839 times.

      Is this article up to date?

      ⚠️ Disclaimer:

      Content from Wiki How English language website. Text is available under the Creative Commons Attribution-Share Alike License; additional terms may apply.
      Wiki How does not encourage the violation of any laws, and cannot be responsible for any violations of such laws, should you link to this domain, or use, reproduce, or republish the information contained herein.

      Notices:
      • - A few of these subjects are frequently censored by educational, governmental, corporate, parental and other filtering schemes.
      • - Some articles may contain names, images, artworks or descriptions of events that some cultures restrict access to
      • - Please note: Wiki How does not give you opinion about the law, or advice about medical. If you need specific advice (for example, medical, legal, financial or risk management), please seek a professional who is licensed or knowledgeable in that area.
      • - Readers should not judge the importance of topics based on their coverage on Wiki How, nor think a topic is important just because it is the subject of a Wiki article.

      Advertisement