How to Build a Grouped Excel Report Using FILTER and Dynamic Array Formulas
Question details
The user needs to create a dynamic Excel report that automatically groups values by specific band combinations to match a designated output layout.

- Product
- Excel / WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Transforming raw source data on one sheet into a grouped, dynamically updating layout on a separate report sheet.
- Observed behavior
- The goal is to automatically organize and group source data using advanced array formulas or queries, eliminating the need for manual sorting or static data entry.
Ensure your spreadsheet software supports dynamic array formulas such as FILTER, UNIQUE, and LET, as older versions may not correctly interpret these functions and will return an error.
Use Advanced Dynamic Array Formulas
Leverage built-in dynamic array functions to instantly group and restructure your data without needing macros or manual intervention.
By combining functions like LET, FILTER, and UNIQUE, you can extract unique group identifiers and spill matching related data into adjacent rows or columns. This approach is highly flexible and updates automatically as your source data changes.
Start your formula with the LET function to assign names to your raw data arrays (e.g., source data range and criteria columns), which makes the complex formula easier to read and troubleshoot.
Use the UNIQUE function on your category or band column to generate a distinct list of groups that will serve as the anchors for your report layout.
Embed the FILTER function to pull out the values corresponding to each unique group. Example syntax: =FILTER(data_range, criteria_range=unique_group).
Depending on your desired output, wrap the filtered results using functions like REDUCE, SCAN, or WRAPROWS to format the extracted arrays into the correct multi-column or multi-row layout.

Group Data Using SQL-Style Queries or Power Query
Use a database query approach or Power Query to transform, group, and load the data if you are dealing with very large datasets or complex relational tables.
Create Dynamic Reports Seamlessly with WPS Spreadsheet
WPS Spreadsheet fully supports advanced dynamic array functions like FILTER, UNIQUE, and LET, enabling you to build complex, dynamically grouped reports without limitations.
- 1. Open your data file: Launch WPS Spreadsheet and open the workbook containing your raw Sheet1 data.
- 2. Input the array formula: Navigate to the target cell in your desired output sheet and input your dynamic array formula using FILTER and UNIQUE.
- 3. Auto-spill the results: Press Enter, and WPS Spreadsheet will automatically spill the grouped, formatted data into the adjacent cells to complete your report.

Frequently Asked Questions
Why do I get a #SPILL! error when using the FILTER function?
A #SPILL! error occurs when the dynamic array formula doesn't have enough empty adjacent cells to display the results. To fix this, simply clear any existing data, spaces, or formatting in the cells below or next to your formula.
Can I group my data layout without using complex array formulas?
Yes. If you prefer a no-formula approach, you can use Pivot Tables. Highlight your source data, go to the Insert tab, select Pivot Table, and drag your band combinations into the Rows area to automatically group them.
Are functions like LET and REDUCE available in all versions of spreadsheet software?
No. LET, REDUCE, SCAN, and FILTER are modern dynamic array functions that may not be supported in legacy versions of Office software. Ensure your software is updated to the latest version, or use an updated suite like WPS Office which supports these advanced functions.




