How to Select Salary Values by Grade and FTE in Word Mail Merge
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.

- 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.
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.
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.
Launch Excel and open the spreadsheet containing your mail merge data.
Create a new worksheet within the file named 'Salary Scale' and input your reference salary values categorized by Grade, SCP, and FTE.
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.
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 a Macro-Enabled Word Template (VBA)
If modifying the external data source is impossible, use VBA and a UserForm within Word to process the lookup logic.
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. 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. 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. 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.

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.




