Function Problems

How to Create a No-Macro Decision Tree with Dependent Drop-Down Lists in WPS Spreadsheets

John WilsonJohn Wilson Nov 13, 2026 870 views

Question details

The user wants to create a macro-free Excel decision tree in WPS Spreadsheets with dependent data-validation drop-down lists, where later choices filter according to earlier selections and invalid combinations are prevented or identified.

Create a No-Macro Decision Tree with Dependent Drop-Down Lists in WPS Spreadsheets
Product
WPS Office Spreadsheets
Device & OS
not provided
Scenario
Building a product configurator or decision tree with cascading drop-down choices without using VBA or an XLSM workbook.
Observed behavior
When an earlier selection changes, dependent selections can remain stale or become invalid; the user needs a formula/data-validation based approach.
Before you start

Prepare a source-list sheet with primary categories in one column and dependent options in adjacent columns, and give each dependent column a header that exactly matches a primary category name.

Solution 1Recommended

Create Dependent Drop-Downs with Named Ranges and INDIRECT in WPS Spreadsheets

Use this as the main no-macro method when you want the second-level drop-down to filter based on the first selection.

This method uses WPS Spreadsheets' Data Validation and named ranges. The dependent list source is built with the INDIRECT function, so the second drop-down reads the range name returned by the first selection. It remains a standard .xlsx workbook with no VBA.

1
Prepare source lists

Open WPS Spreadsheets and create a new sheet. Put the primary categories in column A, then enter each category's dependent options in the adjacent columns using the category names as the column headers.

2
Create named ranges

Select the dependent option cells for one category, go to Formulas > Name Manager, click New, and enter the exact category name as the range name. Repeat for each dependent list.

3
Add the primary drop-down

Click the first decision cell, go to Data > Data Validation, set Allow to List, and enter the primary category range such as =Source!$A$2:$A$10. Click OK.

4
Add the dependent drop-down

Click the second decision cell, go to Data > Data Validation, set Allow to List, and enter =INDIRECT(A2) in Source, replacing A2 with the cell containing the primary selection. Click OK.

5
Test and handle stale selections

Change the primary drop-down and then open the dependent drop-down to confirm the filtered list. If the old dependent value no longer matches, clear it manually or add a helper column that flags invalid combinations.

Create Dependent Drop-Downs with Named Ranges and INDIRECT in WPS Spreadsheets
Macro-free setup complete: Your dependent drop-downs now filter by the earlier selection and can be saved as a standard .xlsx file without enabling macros.
WPS Spreadsheets direct solution

Create a Macro-Free Decision Tree in WPS Spreadsheets

WPS Spreadsheets can build a dependent drop-down decision tree using named ranges, Data Validation, and the INDIRECT function. You get the same interactive behavior as Excel without macros or XLSM files, while saving as a standard .xlsx workbook.

  1. 1. Prepare the workbook: Open WPS Spreadsheets and create a source sheet for primary categories and their dependent options.
  2. 2. Define named ranges: Select each dependent option list, click Formulas > Name Manager > New, and name it exactly after the corresponding primary category.
  3. 3. Create the primary drop-down: Select the first decision cell, click Data > Data Validation > List, and enter the primary category source range.
  4. 4. Link the dependent drop-down: Select the next cell, click Data > Data Validation > List, and enter =INDIRECT(first_cell) in Source, using the actual first selection cell.
  5. 5. Test and save: Change the primary selection to verify filtered dependent options, then save the workbook as .xlsx to remain macro-free.
Build dependent decision-tree lists without VBA or XLSM filesSaves and opens Microsoft Excel .xlsx files with high compatibilityFree, lightweight Office suite with a familiar Data Validation workflowNo macro security warnings when sharing ordinary workbooks
microsoft office alternative - wps office

Frequently Asked Questions

Can I create dependent drop-down lists in WPS Spreadsheets without using macros?

Yes. Use Data Validation with the List option and create named ranges for each dependent list, then set the dependent cell source to =INDIRECT(A2), where A2 is the primary drop-down cell.

Why does my dependent drop-down keep the old value when the first selection changes?

Data Validation does not automatically clear a cell when its source changes. You can clear the dependent cell manually, apply conditional formatting to highlight invalid values, or add a helper formula to flag mismatched combinations.

Does this dependent drop-down method work when the file is opened in Microsoft Excel?

Yes. The named range and INDIRECT approach creates a standard .xlsx workbook. It does not require VBA or an XLSM file, so it opens normally in Microsoft Excel.

How should I name the ranges for dependent lists?

Name each range exactly after the corresponding primary category text, and avoid spaces or special characters. For example, if the primary category is 'Laptop', name the dependent range 'Laptop' or 'Laptop_Options' and reference that exact name in the INDIRECT formula.

Can a formula return the final product after two drop-down selections?

Yes. Add a reference table with each valid combination and use a lookup formula such as INDEX/MATCH or LOOKUP with multiple conditions to return the matching product, wrapped in IFERROR to handle invalid combinations.