Create a Dependent Drop-Down List in Excel Without Nested IFS
Question details
Create a steel-size drop-down whose options depend on the selected steel type, without using nested IFS statements.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet needs a different list of sizes for each steel type.
- Observed behavior
- Selecting a steel type should make the size drop-down show only the sizes associated with that type.
List each steel type and its available sizes in separate worksheet ranges. Make sure each type label can be converted to a valid range name by replacing spaces with underscores.
Use Named Ranges and INDIRECT for the Dependent List
Use this method to maintain each size list separately and select it with one data validation formula.
For example, a steel type labeled Hot Rolled must have a corresponding size range named Hot_Rolled. Each label must map to an existing valid range name; the formula below replaces spaces but does not remove other characters.
On a worksheet, enter steel types such as Hot Rolled and Cold Rolled in D2:D3. Enter the corresponding size lists in separate ranges, such as F2:F4 and G2:G4.
Select F2:F4, type Hot_Rolled in the Name Box to the left of the formula bar, and press Enter. Select G2:G4 and name it Cold_Rolled. Include only the size cells, not their headers.
Select A2, open Data > Data Validation, and choose List under Allow. Enter =$D$2:$D$3 as the Source, then select OK.
Select B2, open Data > Data Validation, and choose List under Allow. Enter =INDIRECT(SUBSTITUTE($A$2," ","_")) as the Source, then select OK.
Choose a steel type in A2, then open the drop-down in B2 and check that it shows the matching sizes.

Build Dependent Steel-Size Lists in WPS Spreadsheet
Use named ranges and a data validation formula in WPS Spreadsheet to display sizes for the selected steel type.
- 1. Enter the lists: Open WPS Spreadsheet and enter the steel types in D2:D3 and their size lists in separate ranges, such as F2:F4 and G2:G4.
- 2. Name the size ranges: Select each size range and use the Name Box beside the formula bar to name it after its steel type, replacing spaces with underscores, such as Hot_Rolled.
- 3. Create the first drop-down: Select A2 and open Data > Data Validation, which may be labeled Validity. Choose List and set the source to =$D$2:$D$3.
- 4. Create and test the dependent list: Select B2, open Data > Data Validation, choose List, and enter =INDIRECT(SUBSTITUTE($A$2," ","_")) as the source. Choose a type in A2 and open B2 to check its sizes.

Frequently Asked Questions
Why is my dependent drop-down empty or showing an error?
Check the selection in A2 and the corresponding name in the Name Box or Formulas > Name Manager. For example, Hot Rolled must map to Hot_Rolled. The formula replaces spaces with underscores but does not handle other invalid characters.
How do I add another steel type and size list?
Add the type to the source list, enter its sizes in a separate range, and name that range to match the type with underscores instead of spaces. Expand the source range in Data > Data Validation if the new type is outside D2:D3.
How can I use the dependent drop-down on multiple rows?
Set the B2 validation source to =INDIRECT(SUBSTITUTE($A2," ","_")), then copy B2 down column B. The row reference will change so each size list uses the steel type in the same row.
Does changing the steel type automatically clear the selected size?
No. A previously selected size may remain in the dependent cell. Clear that cell and choose a size from its updated drop-down after changing the steel type.




