Function Problems

Create an Excel Job-Type Drop-Down with an Automatic Cost Lookup

Jason MillerJason Miller Nov 18, 2026 871 views

Question details

Create a job-type drop-down in Excel that displays the corresponding percentage cost in another cell.

Create an Excel Job-Type Drop-Down with an Automatic Cost Lookup
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user selects a job type from a list and wants its associated cost percentage to appear automatically.
Observed behavior
The selected job type should determine the percentage displayed in the cost cell.
Before you start

Decide where to store the job types and their cost percentages. The examples below use E2:E3 for job types, F2:F3 for costs, A2 for the drop-down, and B2 for the result.

Solution 1Recommended

Create the drop-down and return the cost with XLOOKUP

Use this approach in an Excel version that supports XLOOKUP.

1
Enter the lookup table

In E2:E3, enter two job types, such as Design and Installation. In F2:F3, enter their corresponding costs, such as 10% and 15%.

2
Create the drop-down

Select A2, then choose Data > Data Validation. Under Allow, select List, enter =$E$2:$E$3 in Source, and click OK.

3
Add the lookup formula

Select B2 and enter =XLOOKUP(A2,$E$2:$E$3,$F$2:$F$3,""). The final argument displays a blank if no match is found.

4
Format and test the result

Select B2 and choose Home > Percent Style. Then select a job type from the drop-down in A2 and check that its cost appears in B2.

Create the drop-down and return the cost with XLOOKUP
Using named ranges: If the job-type and cost ranges are named JobTypes and Costs, use =XLOOKUP(A2,JobTypes,Costs,"") instead.
Try it in WPS Spreadsheet

Build a job-type cost lookup in WPS Spreadsheet

Use a data validation list and VLOOKUP in WPS Spreadsheet to show the percentage cost for a selected job type.

  1. 1. Enter the source data: Open WPS Spreadsheet and enter job types in E2:E3 and their corresponding percentage costs in F2:F3.
  2. 2. Create the list: Select A2, open Data > Data Validation, choose a list, and set the source range to =$E$2:$E$3.
  3. 3. Add the lookup: Select B2 and enter =IFERROR(VLOOKUP(A2,$E$2:$F$3,2,FALSE),"").
  4. 4. Format and test: Select B2 and apply percentage formatting from the Home tab. Choose a job type in A2 to check the result.
Create a drop-down for consistent job-type selections.Automatically retrieve the matching cost percentage with VLOOKUP.Open and save Microsoft Excel XLSX files.Format lookup results as percentages.
microsoft office alternative - wps office

Frequently Asked Questions

How do I add more job types to the drop-down?

Add the new job types and costs below the existing table. Then update the Source range under Data > Data Validation and extend the ranges in the lookup formula to include the new rows.

Why does the lookup cell appear blank?

The example formulas return a blank when no match is found. Check that A2 contains a selection and that the lookup range includes the selected job type.

Why does the cost show as 0.1 instead of 10%?

Select the result cell and choose Home > Percent Style. A stored value of 0.1 is displayed as 10% when percentage formatting is applied.

Can I use the same drop-down and formula for multiple rows?

Copy A2 and B2 down to the rows you need. The absolute references keep the lookup table fixed, while the A2 reference changes to match each row.