DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
World desk4 min

Excel FILTER + SORT: Create a List That Updates Automatically

Use one dynamic array formula to return matching Excel rows in sorted order, with guidance for criteria, expanding table data, spill errors, and compatibility.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To build a live list of matching rows and keep it sorted, enter one formula in a clear worksheet cell: =SORT(FILTER(A2:D100,C2:C100=H1,""),4,-1). It returns rows from A2:D100 where the corresponding value in column C matches H1, then sorts those results by their fourth column in descending order. Change the ranges, match condition, sort column, and direction to fit your sheet.

How the FILTER + SORT formula works

FILTER selects rows using a Boolean test, and SORT orders the resulting array. Microsoft describes FILTER as a way to filter a range of data based on criteria you define. The formula nests the functions so sorting applies to the matches, not to the original data.

As an Amazon Associate I earn from qualifying purchases.

In =SORT(FILTER(A2:D100,C2:C100=H1,""),4,-1), A2:D100 is the source data, C2:C100=H1 checks each row against the chosen criterion, and "" supplies a result when nothing matches. The outer function sorts the matches by column four of the returned array, descending.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Build the formula for your worksheet

  1. Identify the full set of columns to return, such as A2:D100. The include test must cover the same rows as that source range.

    #1 Best Overall
    Sale
    The Microsoft Office 365 Bible: The Most Updated and Complete Guide to Excel, Word, PowerPoint, Outlook, OneNote, OneDrive, Teams, Access, and Publisher from Beginners to Advanced
    • The Microsoft Office 365 Bible: The Most Updated and Complete Guide to Excel, Word, PowerPoint, Outlook, OneNote, OneDrive, Teams, Access, and Publisher from Beginners to Advanced
    • ABIS BOOK
  2. Choose a criterion cell, such as H1, and the source column to test. For example, C2:C100=H1 keeps rows whose column C value equals the value in H1.

  3. Set the no-match result as the third FILTER argument. In FILTER(array,include,[if_empty]), this argument is optional; without it, no matching rows can result in #CALC! because Excel does not support empty arrays.

  4. Wrap the FILTER formula in SORT, then set the sort index and direction. In SORT(array,[sort_index],[sort_order],[by_col]), the index is relative to the returned array. A value of 4 means its fourth column, while -1 requests descending order. The default sort order is ascending.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  5. Enter the completed formula in the top-left cell where you want the output list to begin. Keep the cells where results may appear clear.

Filter on more than one condition

Combine Boolean tests inside FILTER’s include argument. Microsoft’s examples use multiplication when every condition must be true and addition when either condition may be true.

Make the source range grow with your data

Fixed references such as A2:D100 work when the source size is stable. If records will be added or removed, format the source as an Excel table and use structured references so the formula’s source adjusts with the table.

Place the formula outside the table. Microsoft states that spilled array formulas are not supported inside Excel tables. For example, if a table is named Sales and has columns named Region and Revenue, the source and condition can use structured references; use the names from your own table in the formula. The output still needs a clear spill area.

Choose SORT or SORTBY when columns may change

SORT identifies the sort key by its position within the returned array. That is straightforward for a stable layout, but inserting or deleting columns can change which field occupies a given index.

SORTBY sorts an array using a corresponding range instead of a numeric column index. Microsoft describes it as more flexible for grid data and notes that it respects column additions or deletions because it refers to a range. Consider it when the source layout may change; for a fixed shape, the nested SORT formula is simpler.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Fix common errors and sharing problems

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Check Excel compatibility before sharing

Microsoft’s function documentation lists FILTER and SORT for Microsoft 365, Excel 2024, and Excel 2021 in the editions it covers. Microsoft says dynamic arrays were introduced in September 2018 and released to Microsoft 365 subscribers in Current Channel in January 2020. Availability can vary by version and platform, so check the recipient’s Excel release rather than assuming the formula will spill in an older installation.

For details, see Microsoft’s FILTER function documentation, SORT function documentation, SORTBY function documentation, and dynamic array and spill behavior guidance.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.