No—Google Sheets does not automatically re-sort a normal data range whenever a value changes. To keep a separate, automatically updated sorted list, use the SORT function; to reorder the original rows, sort the range manually or set up a carefully designed Apps Script.
What Google Sheets does when data changes
A sort performed from the Sheets menu changes the current order of the selected rows, but it is a one-time action. If you later change a value in a column, Sheets updates that cell without moving the row to its new position in the sort order. For example, if a task list is sorted by due date and you change a task’s date from Friday to Monday, the task stays where it is until someone sorts the list again.
This distinction matters because sorting is not the same as filtering. A filter lets you hide rows that do not match a condition, and you can sort the visible records through the filter controls. Neither a regular sort nor a filter automatically promises to keep every row in a permanently maintained order as values are edited.
Sheets also does not provide a general-purpose setting such as automatically sort this range after every edit. The built-in SORT function is usually the simplest way to display changing source data in a changing order, but it produces a sorted result elsewhere rather than rearranging the source cells.
Use SORT for a live, automatically updated list
For a view that should stay sorted as source values change, put a formula in an empty area or on a separate sheet. For example, assume row 1 contains headers, names are in column A, scores are in column B, and notes are in column C. Enter this formula in an empty cell, such as E1, to display the records from highest score to lowest:
With names in A2:A, scores in B2:B, and notes in C2:C, enter =SORT(A2:C,2,FALSE). The second argument identifies the second column of the supplied range, column B, and FALSE requests descending order. If the source scores are 91, 76, and 88, the displayed rows appear in the order 91, 88, 76. Editing one of those scores recalculates the displayed order.
The formula does not change the original rows. It returns an array of results that expands into the cells below and to the right of the formula. Leave that output area clear: existing values or merged cells in the way can prevent the result from expanding and produce an array-expansion error. The source range and output range should not overlap.
If the source has blank rows, a formula over open-ended columns can bring blank records into the result. When column A is a required record identifier, use a filter inside the sort to omit rows with no identifier:
With complete records in A2:C and a nonblank name in column A for every real record, enter =SORT(FILTER(A2:C,A2:A<>""),2,FALSE). The filter keeps rows with a name before sorting them by score. If the identifier is in another column, change the filter condition to that column. This is useful for growing lists, though a very large open-ended range may require more calculation than a range sized to the data.
Choose the right sorting method
The right approach depends on whether people need to edit the original table in its sorted order, or merely need a live sorted presentation of it. Consider these options:
- Use SORT when you want a live sorted report, dashboard, or read-only view while preserving the source order. It recalculates as the referenced values change.
- Use a normal sort when you want to rearrange the original rows for a one-time task. Select the whole data range, then use Data > Sort range and choose the sort column. Include all related columns so each record stays together.
- Use a filter when people need to show, hide, and sort records interactively. Select the data and choose Data > Create a filter. Filter controls appear in the header row. Sorting from those controls changes the order of the sheet’s rows; it does not create a separate formula-driven output.
- Use a filter view when collaborators need their own saved filter or sorting arrangement without changing the view for everyone else. Look under Data > Filter views to create one. A filter view is useful for alternative ways of examining a shared table, not a substitute for a continuously sorted source range.
- Consider Apps Script only if the original rows must actually move into order after edits. A script can be configured to sort a specific range in response to edits, but it needs deliberate rules about headers, edited columns, and which records to include.
Sort by more than one column
A live result can use multiple sort keys. This is helpful when one value is not unique. For example, a class list might sort by team and then by student name, or an order report might sort by status and then by date. The additional sort-column arguments refer to positions within the supplied range, not necessarily the sheet’s absolute column letters.
With team names in A2:A, student names in B2:B, and other fields in C2:D, enter =SORT(A2:D,1,TRUE,2,TRUE) in an empty output area. This sorts by the first column of A:D, team, in ascending order, and then by the second column, student name, in ascending order. The result updates when the referenced source values change. If you want descending order for one key, use FALSE for that key while leaving the other key set independently.
Before using a multi-key sort, decide what should happen when two rows have identical values in every sort key. If their relative order matters, add another key that distinguishes them, such as a unique ID or timestamp. Otherwise, do not rely on the formula to express a business rule you have not specified.
Why not sort the original table after every edit?
Automatic reordering of the source can be disorienting. A user edits a cell, the row moves immediately, and the user may then continue typing into the wrong record. It can also make a shared sheet harder to use because collaborators may see rows move while they are working. A sorted output separates data entry from presentation: people edit the source table, while readers consult the sorted view.
There are also practical questions a script must answer. Should it run when any cell changes, or only when the sort key changes? Should it ignore the header? Should it include newly added rows? What happens to partially completed records? Should it sort the whole table or only a particular tab? A script that sorts only one column can separate values from their related names or dates, damaging the records.
Apps Script can automate a sort of the original range, commonly using an edit trigger, but the behavior is custom rather than a built-in Sheets auto-sort switch. Scripts may require authorization depending on what they do, and trigger behavior has limits. For a shared or important sheet, test the workflow on a copy and document when the sort runs. If users need to enter several related fields before a row is complete, sorting after each individual edit may be a poor fit.
Common problems and how to avoid them
- The formula says the result cannot expand: Clear the cells where the sorted output needs to appear. Check for hidden content, merged cells, or another formula blocking the array.
- The header appears in the sorted results: Start the source range below the header, such as A2:C, rather than sorting the header together with the records. Add a separate header above the formula output if needed.
- Rows with missing values appear: Use a condition with
FILTERto exclude records that lack a required key, or use a range that does not include large unused areas. - Values seem detached from their records: A manual sort must include every column belonging to the rows. Sorting just the score column can place scores beside the wrong names. A formula that sorts the complete rectangular range avoids that particular mistake.
- The order looks wrong: Check whether dates and numbers are stored as actual dates and numbers, rather than text. Text that looks like a date can sort alphabetically or otherwise behave differently from a date value.
- Changes do not appear in the sorted view: Confirm that the formula references the cells being edited and that the source and output do not overlap. Also check whether the edited value is produced by a formula; formula results update according to their dependencies, not because the sorted output edits the source.
What SORT does not do
A common misconception is that a formula-based sorted result is a second editable copy of the source. It is not. The output is calculated from the source range, so editing a cell in the result does not update the corresponding source record. Make changes in the original table, then let the formula recalculate.
Similarly, putting a sort formula in the same cells as the data it references is not a way to sort the source in place. The formula needs room to return its results, and overlapping the input and output can create errors or a circular reference. Keep a clear boundary between the table people maintain and the sorted view they read.
Finally, a sorted formula view does not automatically make the source table safe from conflicting edits. If several people are entering data, use clear headers, consistent data types, and a defined input area. For operational work where row order itself controls the next action, decide whether users should edit the source or a controlled form rather than relying on an invisible reordering script.
Frequently Asked Questions
Can Google Sheets automatically sort rows when I add a new row?
Not in a normal data range by default. A SORT formula can include a range that grows, such as A2:C, and show new records in sorted order in its output. A manual sort does not automatically reposition new rows.
Does the SORT formula change my original data?
No. It returns a sorted result in the formula’s output area. Edit the source table to change the underlying data; the formula output updates from those changes.
Can I auto-sort the same range in place?
Not with the built-in sort command alone. You can manually sort the range, or use Apps Script for custom automatic behavior. A separate SORT formula is usually simpler and avoids moving rows while someone is editing.
How do I sort newest dates first?
Sort the range by the date column in descending order. In a formula, use the date column’s position within the supplied range as the sort key and set its order argument to FALSE. Ensure the cells contain real date values.
Can people edit a formula-sorted list?
They can edit the source data if they have permission, but the formula output is not an editable replacement for those source rows. Keep the input table separate from the calculated view.
Google Sheets and Excel are different here
The central distinction is similar in both products: a normal menu sort is an action, while a sort formula creates a calculated view. This guidance uses Google Sheets in a web browser. Excel has its own sorting controls and dynamic-array functions, and menu names and behavior are not identical, so do not assume that a Sheets menu path or sharing feature transfers directly to Excel. In Sheets, the practical starting point is usually a separate formula-driven view when the order must stay current without physically moving the source rows.
Related
- Excel Text Box Linked to Cell: Setup, Uses, and Fixes
- Excel Time to Number: Convert Hours, Minutes, and Seconds
- Excel Time Zones: How Date and Time Conversion Works
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Create an Outlook Distribution List From a CSVTo create an Outlook distribution list from a CSV, first import the CSV’s people as Outlook contacts, then…
- How to Make a Weekly Schedule in Google Sheets Step by StepTo make a weekly schedule in Google Sheets, create a grid with time slots down the first column…
- Excel New Row Shortcut: Insert Rows Above or BelowIn Excel for Microsoft 365 on Windows, select the row where you want the new one, then press…
- Add a Watermark to Just the First Page in WordTo add a watermark to just the first page in Word, separate page one from the rest of…
- Compress Pictures in PowerPoint Office 365 to Save SpaceTo compress pictures in PowerPoint for Microsoft 365 on Windows, select a picture, then choose Picture Format >…
- Google Sheets Cell Dropdown List: Setup and TipsTo create a cell dropdown list in Google Sheets, select the cell or range, choose Insert > Dropdown,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.