Dynamic arrays

List open orders with the FILTER function in Excel

Your dispatch sheet includes orders that shipped, orders on hold and orders that still need packing. Put the open orders in a separate view with FILTER. The order log stays in place, and the view updates when a status changes.

Kinori Labs

Try the example Practice FILTER
A green tray with a few order slips beside a charcoal tray filled with paperwork
On this page

Set up the dispatch log and the status cell

Put the headers in A1:D1 and the six orders in rows 2 through 7. Enter amounts as numbers and status labels as text. Put Open in F2. This is the status you want to see. You can replace it with Hold or Shipped without editing the formula.

Sample dispatch log in A1:D7
OrderCustomerStatusAmount
1042CedarOpen125
1043HarborShipped240
1044AlderOpen95
1045MillHold360
1046BirchOpen180
1047GlenShipped65

Copy the same four headers to H1:K1. Leave the cells below them clear. The filtered output belongs beside the order log, where someone can read both lists without altering the source.

See the worksheet diagram
An order log with the open orders highlighted and spilled into a separate table

Order status filter

Choose a status and a minimum amount to see which orders meet both conditions.

3 orders match the Open status.

Matching orders
OrderCustomerStatusAmount
1042CedarOpen$125
1044AlderOpen$95
1046BirchOpen$180
See the Excel formula

Enter in H2 on this worksheet.

=FILTER(A2:D7,C2:C7="Open","No matching orders")

Return every row that matches the status

Enter the formula in H2 once. In Excel versions that support FILTER, the results expand from that cell across and down. A2:D7 is the range to display. C2:C7=F2 gives one yes-or-no result per source row.

=FILTER(A2:D7,C2:C7=F2,"No matching orders")

With Open selected, the formula returns orders 1042, 1044 and 1046, in source order. The amount column totals $400. Change the status to Hold and only order 1045 should appear. Enter a status with no matching rows and the message in the third argument appears instead of an empty-array error.

Show open orders worth at least $100

Put 100 in F3 and set F2 back to Open. Replace the formula in H2. The two conditions are in parentheses. Multiplying them keeps a row only when both conditions are true. Keep each condition range aligned with the rows in the displayed range.

=FILTER(A2:D7,(C2:C7=F2)*(D2:D7>=F3),"No matching orders")

Orders 1042 and 1046 remain. Order 1044 has the right status but falls below the cutoff. Mill’s $360 order meets the cutoff and stays out because it is on hold. These two rejected rows are quick checks that each condition is doing its job.

Leave room for the result to grow

If Excel shows #SPILL!, look for an existing entry or a merged cell in the output area. Move the formula or clear the obstruction if the cell is safe to change. Edit the formula in H2. The remaining cells belong to the spill result.

When your log grows, extend the source range and both condition ranges together. If you convert the log to an Excel table, you can use its column names and write the output formula in the grid outside that table. That lets the source grow while leaving space for the result.

FILTER is available in Microsoft 365 and newer perpetual versions including Excel 2021. The regular filter buttons on a worksheet can help someone working in an older version. The FILTER lesson asks you to build a matching result and check where the whole array lands.

Try it on another worksheet

Practice FILTERRead the lesson guide

Sources