Function Problems

Create Dependent Trainer Drop-Down Lists and Rates in Excel

Huma Ashraf ChHuma Ashraf Ch Dec 2, 2026 868 views

Question details

Create connected selections for state, language, and trainer and return the matching hourly rate.

Create Dependent Trainer Drop-Down Lists and Rates in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user selects a state and language, chooses an available trainer, and needs the corresponding hourly rate.
Observed behavior
The trainer list should reflect the selected state and language, and the rate should match all three selections.
Before you start

Prepare a source table with State, Language, Trainer, and Hourly Rate columns. Make sure each state, language, and trainer combination has one rate, and check that your Excel version supports FILTER and XLOOKUP.

Solution 1Recommended

Use FILTER and XLOOKUP to build dependent Excel lists

Use this method in Microsoft 365 Excel to generate the trainer list dynamically and look up the matching rate.

1
Create the source table

Select the source data, choose Insert > Table, and name the table TrainerTable on the Table Design tab. Use the column headers State, Language, Trainer, and Hourly Rate.

2
Set up state and language lists

On a separate selection sheet, select A2 and choose Data > Data Validation > List. Enter the available states in Source, separated by commas. Repeat for B2 with the available languages.

3
Filter the trainers

In H2 on the selection sheet, enter =FILTER(TrainerTable[Trainer],(TrainerTable[State]=A2)*(TrainerTable[Language]=B2),""). Leave the cells below H2 empty so the results can spill.

4
Create the trainer drop-down

Select C2, choose Data > Data Validation > List, and enter =$H$2# in Source. The list will use the spilled trainer results for the selected state and language.

5
Return the hourly rate

In D2, enter =IF(OR(A2="",B2="",C2=""),"",XLOOKUP(1,(TrainerTable[State]=A2)*(TrainerTable[Language]=B2)*(TrainerTable[Trainer]=C2),TrainerTable[Hourly Rate],"")). Select a state, language, and trainer to test the result.

Use FILTER and XLOOKUP to build dependent Excel lists
Update the trainer selection: If you change the state or language, clear C2 and select a trainer again. Excel does not automatically clear an earlier selection; the rate formula returns blank if that selection no longer matches.
Work with trainer rates in WPS

Build trainer selections and rate lookups in WPS Spreadsheet

Use data validation and a lookup table in WPS Spreadsheet to choose a trainer and return the matching rate. Refresh the trainer list manually when the state or language changes.

  1. 1. Prepare the rate table: In a sheet named Rates, put Key, State, Language, Trainer, and Hourly Rate in A1:E1. In A2, enter =B2&"|"&C2&"|"&D2 and fill it down. Use one rate per state, language, and trainer combination.
  2. 2. Create the first two lists: On a selection sheet, enter the available states in J2:J100 and languages in K2:K100. Select A2, choose Data > Data Validation > List, and use =$J$2:$J$100 as the source. Repeat for B2 using =$K$2:$K$100.
  3. 3. Prepare the trainer choices: Select a state in A2 and a language in B2. On Rates, use Data > Filter to show matching rows, then copy the Trainer values and paste them into H2:H100 on the selection sheet.
  4. 4. Add the trainer drop-down: Select C2, choose Data > Data Validation > List, and set the source to =$H$2:$H$100. Choose a trainer from the list.
  5. 5. Look up the rate: In D2, enter =IF(OR(A2="",B2="",C2=""),"",IFERROR(VLOOKUP(A2&"|"&B2&"|"&C2,Rates!$A$2:$E$1000,5,FALSE),"")). When A2 or B2 changes, clear C2 and H2:H100, then filter and paste the matching trainers again.
Create trainer drop-downs for a selected state and languageLook up the matching hourly rate with VLOOKUPOpen and save Microsoft Excel XLSX workbooksUse a familiar spreadsheet interface for free
microsoft office alternative - wps office

Frequently Asked Questions

What happens if no trainer matches the state and language?

The FILTER formula returns a blank result, so the trainer drop-down has no matching name. Check the State and Language values in TrainerTable for spelling differences.

Why does the rate stay blank after I change the state?

The trainer in C2 may belong to the previous selection. Clear C2 and choose a trainer from the updated drop-down; the XLOOKUP formula checks the state, language, and trainer together.

Can the same trainer have different rates?

Yes, if the rates apply to different state and language combinations. Keep each state, language, and trainer combination unique; otherwise, XLOOKUP returns the first matching rate.

Why does the trainer list show a spill error?

Check H2 and the cells below it on the selection sheet. Clear any content blocking the FILTER results, and make sure the formula is outside the source table.