Template Issues

How to Select Salary Values by Grade and FTE in Word Mail Merge

Aamir Naveed AkramAamir Naveed Akram Oct 10, 2026 869 views

Question details

The user needs to dynamically select salary values from a scale based on employee grade, SCP, and FTE during a document mail merge.

How to Select Salary Values by Grade and FTE in Word Mail Merge
Product
Word
Device & OS
not provided
Scenario
Generating employee contracts or letters where the salary must be determined using lookup logic based on specific grading systems and Full-Time Equivalent (FTE) values.
Observed behavior
Standard Word field-code calculations and nested merge fields fail to execute the complex lookups, resulting in blank values or syntax errors because the external system lacks direct lookup functionality.
Before you start

Ensure you have access to the original data source (such as an Excel spreadsheet) to add calculation columns, as performing complex matrix lookups directly within Word field codes is highly prone to syntax errors.

Solution 1Recommended

Use Excel Lookup Formulas in the Data Source

The most reliable method is to perform the salary calculations and lookups in Excel before merging the data into Word.

Instead of relying on Word to calculate or look up data natively, you can use Excel's powerful formula engine to prepare the final salary values. Word mail merge works best when reading pre-calculated flat data rather than performing the logic itself.

1
Open your Data Source

Launch Excel and open the spreadsheet containing your mail merge data.

2
Create a Salary Scale Table

Create a new worksheet within the file named 'Salary Scale' and input your reference salary values categorized by Grade, SCP, and FTE.

3
Apply Lookup Formulas

In your main employee data sheet, add a new column named 'Calculated_Salary'. Use a formula like VLOOKUP, XLOOKUP, or an INDEX/MATCH combination to pull the correct salary from the 'Salary Scale' sheet based on the employee's specific grade and FTE.

4
Complete the Mail Merge

Save the Excel file. Open your Word document template, go to the 'Mailings' tab, click 'Select Recipients' > 'Use an Existing List', and link your updated Excel file. Finally, click 'Insert Merge Field' and select 'Calculated_Salary'.

Use Excel Lookup Formulas in the Data Source
Best Practice: Preparing complex calculations in Excel prevents Word field-code syntax errors and ensures your mail merge output is accurate and easy to verify.
Mail Merge Made Easy

Easily Manage Mail Merge Data with WPS Office

WPS Office provides seamless integration between WPS Spreadsheet and WPS Writer, allowing you to easily look up salary values using advanced formulas and merge them into professional documents without syntax errors.

  1. 1. Prepare Data in WPS Spreadsheet: Open your data file in WPS Spreadsheet and use built-in lookup formulas to calculate the salary based on Grade and FTE.
  2. 2. Start Mail Merge in WPS Writer: Open your document template in WPS Writer, navigate to the 'References' tab, and click the 'Mail Merge' button.
  3. 3. Connect Data and Insert Fields: Click 'Open Data Source' to link your spreadsheet, then use 'Insert Merge Field' to place the accurately calculated salary into your document.
Seamless mail merge integration between spreadsheets and word documents.Highly compatible with Microsoft Excel (.xlsx) and Word (.docx) formats.Robust formula support including VLOOKUP, XLOOKUP, and INDEX/MATCH for complex salary logic.Lightweight, fast, and free to use for everyday office tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why do Word field-code calculations show blank values or syntax errors?

Word's internal field codes lack the robust computational capabilities found in spreadsheet software. They do not natively support complex IF-then conditions or matrix lookups (like cross-referencing Grade and FTE simultaneously). Attempting to force these operations often results in syntax errors or blank outputs.

Can I combine merge fields to create a bookmark reference for salary lookups?

While it is technically possible to nest fields (e.g., nesting a MERGEFIELD inside a REF field), it is extremely tedious to set up and difficult to maintain. Additionally, it often breaks depending on how the external data source formats the incoming text, making an external data lookup much more reliable.

What is FTE in salary calculations?

FTE stands for Full-Time Equivalent. In HR and recruitment, it is used to calculate prorated salaries for part-time employees. For example, an FTE of 0.5 indicates an employee works half the standard full-time hours, and their salary is calculated as half of the full-time scale for their specific grade.