Create an Excel Job-Type Drop-Down with an Automatic Cost Lookup
Question details
Create a job-type drop-down in Excel that displays the corresponding percentage cost in another cell.

- 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.
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.
Create the drop-down and return the cost with XLOOKUP
Use this approach in an Excel version that supports XLOOKUP.
In E2:E3, enter two job types, such as Design and Installation. In F2:F3, enter their corresponding costs, such as 10% and 15%.
Select A2, then choose Data > Data Validation. Under Allow, select List, enter =$E$2:$E$3 in Source, and click OK.
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.
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.

Use VLOOKUP for earlier Excel versions
Use VLOOKUP when XLOOKUP is not available in your version of Excel.
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. Enter the source data: Open WPS Spreadsheet and enter job types in E2:E3 and their corresponding percentage costs in F2:F3.
- 2. Create the list: Select A2, open Data > Data Validation, choose a list, and set the source range to =$E$2:$E$3.
- 3. Add the lookup: Select B2 and enter =IFERROR(VLOOKUP(A2,$E$2:$F$3,2,FALSE),"").
- 4. Format and test: Select B2 and apply percentage formatting from the Home tab. Choose a job type in A2 to check the result.

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.




