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

This wikiHow 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.

Tips When Sorting Columns by Number

  • 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

PDF download Download Article
  1. 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. 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. You can click the column letter above the numbers to select the entire column.
  4. It will open a drop-down menu.
  5. This option will allow you to customize your sorting settings.
  6. It's at the bottom of the menu.
  7. This ensures your header row won't get mixed up in the numbers when you sort.
  8. 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. Your numbers are now in the selected order.
  10. Advertisement
Method 2
Method 2 of 3:

Sorting with a Filter

PDF download Download Article
  1. 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. 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. Click the letter above the column to select all the numbers and the header row at once.
  4. This adds a small funnel icon to the header cell, which indicates that you can now easily sort the column.
  5. 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

PDF download Download Article
  1. 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. 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
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

You Might Also Like

Delete Google Photos Without Deleting from iPhone Delete Google Photos and Keep Them on Your iPhone
Restore Google Authenticator Restore Google Authenticator if You Lost or Reset Your Phone
Get a Google Voice Phone Number Sign Up for a New Google Voice Phone Number
Turn Off Google Safesearch Disable Google Safe Search
Delete a YouTube Account2 Easy Ways to Permanently Delete (or, Hide) Your YouTube Channel
Make Google Docs Dark ModeDark Mode in Google Docs: Easy Steps for Desktop & Mobile
Sign Out of Your Google Account on All Devices at OnceSign Out of Your Google Account on All Devices at Once
Unsync Google Photos2 Simple Ways to Unsync Google Photos
Delete Pages in Google DocsGoogle Docs: 4 Ways to Delete Extra Pages in Your Document
Fix the "Google Play Store Has Stopped" ErrorFix the "Google Play Store Has Stopped" Error
Use Google Translate Use Google Translate: Complete Beginner's Guide
Search by Image on GoogleReverse Image Search in Google Lens: Android, iPhone, & Desktop
Turn Off Google Ads Step Seeing Google Ads on PC or Mobile Devices
Delete Duplicates on Google Photos Delete Duplicate Photos from your Google Storage
Advertisement

About This Article

Stan Kats
Reviewed by:
Professional Technologist
This article was reviewed by Stan Kats and by wikiHow staff writer, Hannah Dillon. 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 176,592 times.
How helpful is this?
Co-authors: 2
Updated: June 6, 2024
Views: 176,592
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 176,592 times.

Is this article up to date?

Advertisement