Use a Lookup Formula in WPS Spreadsheet for Income Tax Withholding
Question details
Calculate payroll income tax withholding for multiple employees by looking up weekly earnings in a tax table.

- Product
- WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- The user wants to replace long nested IF formulas with a reusable lookup formula based on employee earnings.
- Observed behavior
- The formula should return the withholding amount from the tax bracket that matches each employee's weekly earnings, while leaving results blank when earnings are not entered.
Make sure the first column of the tax table contains the lower limit of each earnings bracket and is sorted from smallest to largest. Confirm which column in the table contains the withholding amount to return.
Use an approximate-match VLOOKUP for the sorted tax table
Use this method when weekly earnings must return the withholding amount for the nearest lower tax bracket in a sorted table.
An approximate-match VLOOKUP finds the largest lower earnings limit that does not exceed the employee's earnings. This is suitable for payroll tax tables that define withholding by income ranges.
On the Tax_Table worksheet, select the full tax table, then use Data > Sort and sort the lower earnings limit column in ascending order.
In the withholding column for the first employee, such as cell B2, click the cell where the tax withholding amount should appear.
Type =VLOOKUP(A2,Tax_Table!$A$2:$C$1000,3,TRUE), where A2 is the employee's weekly earnings and column 3 of the selected tax table contains the withholding amount.
If an employee may not have earnings entered, use =IF(A2="","",VLOOKUP(A2,Tax_Table!$A$2:$C$1000,3,TRUE)) to avoid showing a result for blank cells.
Select the formula cell and drag the fill handle down, or copy and paste the formula into the remaining employee rows.

Calculate Payroll Tax Withholding with VLOOKUP in WPS Spreadsheet
WPS Spreadsheet lets you use VLOOKUP to match each employee's earnings to a sorted tax bracket table and return the corresponding withholding amount. Enter the formula once, then fill it down for the full payroll list.
- 1. Create the tax bracket table: In WPS Spreadsheet, place the lower earnings limits in the first column of a tax table and place withholding amounts in a return column.
- 2. Sort the bracket limits: Select the tax table and choose Data > Sort to arrange the lower earnings limit column from smallest to largest.
- 3. Enter the payroll lookup formula: Click the first withholding cell and enter =IF(A2="","",VLOOKUP(A2,Tax_Table!$A$2:$C$1000,3,TRUE)).
- 4. Apply the formula to all employees: Use the fill handle on the selected formula cell to copy the formula down through the employee list.

Frequently Asked Questions
Why must the tax table be sorted for VLOOKUP with TRUE?
VLOOKUP with TRUE uses approximate matching and returns the row with the largest lower limit that is less than or equal to the earnings value. The first column of the tax table must be sorted in ascending order for this result to be reliable.
How do I return a blank when an employee has no weekly earnings?
Wrap the lookup in an IF formula: =IF(A2="","",VLOOKUP(A2,Tax_Table!$A$2:$C$1000,3,TRUE)). This checks whether A2 is blank before running VLOOKUP.
What does the number 3 mean in the VLOOKUP formula?
The 3 tells VLOOKUP to return a value from the third column of the selected range. For Tax_Table!$A$2:$C$1000, column A is 1, column B is 2, and column C is 3.
Can I use this formula with an Excel payroll file in WPS Spreadsheet?
Yes. WPS Spreadsheet supports Excel .xlsx files and VLOOKUP formulas. Open the workbook, verify the worksheet name and cell ranges, then enter or update the formula in the withholding column.




