How to Populate Excel Cells Based on Product List Selections
Question details
The user wants to dynamically populate specific target cells with products and their corresponding categories based on a specified selection from a broader list.

- Product
- Spreadsheet/Excel
- Device & OS
- not provided
- Scenario
- Filtering and displaying specific products and their associated categories based on a user-defined text selection list.
- Observed behavior
- The target cells need to automatically retrieve and display only the selected products along with their categories by cross-referencing the master source data.
Ensure your source data is organized into clean, separate columns for Products and Categories, and clearly identify the specific cell containing your desired selections.
Use FILTER and SEARCH Functions to Populate Cells
Combine the dynamic array FILTER function with ISNUMBER and SEARCH to extract items matching your chosen selection criteria.
The FILTER function is ideal for returning arrays of data based on a given condition. By checking if specific text exists within your selection cell using SEARCH, and generating a TRUE/FALSE logic array with ISNUMBER, you can instruct FILTER to output only the exact rows you need.
Arrange your source data into distinct, adjacent columns. For example, place your product Categories in column E and the Products themselves in column F (e.g., E12:F28).
Enter the products you want to filter for in a single reference cell, such as B10. This cell acts as your criteria list.
Select the top-left cell where you want the populated data to appear (e.g., B13) and input the formula: `=FILTER(E12:F28,ISNUMBER(SEARCH(F12:F28,B10)))`.
Press Enter. The formula will automatically spill the matching results dynamically. Remember to adjust the cell ranges in the formula to match the actual structure and size of your workbook.

Easily Filter and Organize Product Lists with WPS Office
WPS Spreadsheet fully supports dynamic array functions like FILTER, SEARCH, and ISNUMBER, making it incredibly easy to pull specific data based on dropdowns or text selections. It is fully compatible with Microsoft Excel formulas, ensuring a seamless data processing experience.
- 1. Open WPS Spreadsheet: Launch WPS Office and open your workbook containing the master product and category lists.
- 2. Organize data ranges: Ensure your product categories and items are neatly aligned in consecutive columns without empty rows.
- 3. Enter the dynamic formula: Click your destination cell and type the `=FILTER(...)` combination formula exactly as you would in Microsoft Excel.
- 4. View the instant results: Press Enter to instantly populate the cells based on your specified product selection, allowing the array to spill naturally.

Frequently Asked Questions
Why is my FILTER formula returning a #CALC! error?
The #CALC! error occurs when the FILTER function returns an empty array, meaning no data matches the selection criteria in your reference cell. You can prevent this by adding a third argument to the formula: `=FILTER(E12:F28, ISNUMBER(SEARCH(F12:F28, B10)), "No matching products")`.
Can I use this method if my selection is controlled by a drop-down list?
Yes. If your selection cell (e.g., B10) uses Data Validation to create a drop-down list, the FILTER formula will automatically update and fetch the corresponding category and product data whenever you select a different option from the list.
How do I handle exact matches if SEARCH is returning partial text matches?
The SEARCH function matches partial substrings, so searching for 'Item 1' might also accidentally match 'Item 10'. To enforce exact matching, you can structure your selection string with specific delimiters (like wrapping items in commas) or use alternative exact-match logic with combinations of the MATCH and ISNA functions.




