Function Problems

Use a Lookup Formula in WPS Spreadsheet for Income Tax Withholding

Bushra ParveenBushra Parveen Nov 12, 2026 868 views

Question details

Calculate payroll income tax withholding for multiple employees by looking up weekly earnings in a tax table.

Use a Lookup Formula in WPS Spreadsheet for Income Tax Withholding
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.
Before you start

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.

Solution 1Recommended

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.

1
Sort the tax table by lower earnings limit

On the Tax_Table worksheet, select the full tax table, then use Data > Sort and sort the lower earnings limit column in ascending order.

2
Select the first withholding result cell

In the withholding column for the first employee, such as cell B2, click the cell where the tax withholding amount should appear.

3
Enter the VLOOKUP formula

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.

4
Keep empty earnings cells blank

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.

5
Fill the formula down

Select the formula cell and drag the fill handle down, or copy and paste the formula into the remaining employee rows.

Use an approximate-match VLOOKUP for the sorted tax table
Check the lookup range and return column: Change $A$2:$C$1000 to match your tax table. If withholding is stored in a different column within that range, replace 3 with its relative column number.
WPS Spreadsheet solution

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. 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. 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. 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. 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.
Use approximate-match VLOOKUP to return the correct lower earnings bracket.Fill one withholding formula down across many employee rows.Open and edit Microsoft Excel .xlsx payroll workbooks with compatible formulas.Use a familiar spreadsheet interface for sorting tax tables and managing payroll data.
microsoft office alternative - wps office

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.