Apply Pay Rates from a Shift Drop-Down in Excel
Question details
Automatically return the base pay and penalty rate for a selected shift or day-off description.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet uses a drop-down list to select a shift or day-off description, and the user wants the corresponding rates to appear automatically.
- Observed behavior
- The desired result is for the base pay and penalty rate to update when the drop-down selection changes.
Gather the shift and day-off descriptions and their corresponding base pay and penalty rates. Decide whether each penalty rate will be entered as an amount, percentage, or multiplier, and use that convention consistently.
Use a Lookup Table and VLOOKUP to Return Shift Rates
Use this method to return both rates from a shift selection, including in older versions of Excel.
On the worksheet, enter Shift in D1, Base Pay in E1, and Penalty Rate in F1. Enter up to four descriptions and their actual rates in D2:F5, using one row per description.
Select A2, then choose Data > Data Validation. Set Allow to List and enter =$D$2:$D$5 in the Source box. If you already have a drop-down in A2, make sure its descriptions match column D.
Select B2 and enter =IFERROR(VLOOKUP(A2,$D$2:$F$5,2,FALSE),""). The formula returns the base pay for the description selected in A2.
Select C2 and enter =IFERROR(VLOOKUP(A2,$D$2:$F$5,3,FALSE),""). Select a shift in A2 and check that B2 and C2 display the rates from the matching row.
Copy B2:C2 down for additional shift rows. If your rate table has more than four entries, expand the $D$2:$F$5 range in both formulas and update the drop-down source.

Look Up Shift Pay Rates in WPS Spreadsheets
Use a shift list and VLOOKUP formulas in WPS Spreadsheets to return base pay and penalty rates as the selected shift changes.
- 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook, or create a new spreadsheet.
- 2. Enter the rate table: Enter Shift, Base Pay, and Penalty Rate in D1:F1, then fill D2:F5 with your shift descriptions and actual rates.
- 3. Set up the drop-down: Select A2 and choose Data > Data Validation. Select a list and use =$D$2:$D$5 as its source.
- 4. Add the lookup formulas: Enter =IFERROR(VLOOKUP(A2,$D$2:$F$5,2,FALSE),"") in B2 and =IFERROR(VLOOKUP(A2,$D$2:$F$5,3,FALSE),"") in C2. Choose a shift in A2 to check the results.
- 5. Save the workbook: Choose File > Save As and select an Excel workbook format such as XLSX if you need to share the file with Excel users.

Frequently Asked Questions
Why are the rate cells blank after I select a shift?
The IFERROR formulas return a blank when the lookup fails. Check that the selection in A2 exactly matches a description in D2:D5 and that the VLOOKUP range includes the correct row.
Can I use XLOOKUP instead of VLOOKUP?
Yes, in Excel versions that support XLOOKUP. For the example table, enter =XLOOKUP(A2,D2:D5,E2:E5,"") for base pay and =XLOOKUP(A2,D2:D5,F2:F5,"") for the penalty rate.
How do I add more shifts to the drop-down?
Add the descriptions and rates below the existing table, then select A2 and update the source under Data > Data Validation. Expand the lookup ranges in B2 and C2 to include the new rows.
Will the penalty rate formula calculate total pay?
No. It returns the stored penalty rate only. A separate calculation is needed, based on whether the rate represents an additional amount, a percentage, or a multiplier and on how your pay rules apply.




