Use ROUND Instead of TRUNC for Excel Payroll Calculations
Question details
The user needs to prevent payroll totals from differing because formulas use values with more than two decimal places.

- Product
- Microsoft Excel payroll worksheet
- Device & OS
- not provided
- Scenario
- The user formats payroll cells to show two decimal places, then adds or subtracts values and wants totals to match the displayed currency amounts.
- Observed behavior
- Cell formatting displays two decimals but does not change the full stored values used in calculations, causing apparent rounding discrepancies.
Identify the pay, rate, deduction, and subtotal formulas that feed payroll totals. Decide where each monetary amount must be rounded to two decimal places so later calculations use the intended stored amount.
Use ROUND in the payroll formulas that create monetary amounts
Use this recommended method when payroll amounts must be calculated and stored to exactly two decimal places before they are used by other formulas.
ROUND adjusts a number to the nearest requested decimal place. For payroll, placing ROUND directly in the formula is safer than relying on a cell's two-decimal display format, because formatting does not alter the underlying value.
Click the cell that calculates a pay, tax, deduction, or other currency amount, then select the Formula Bar or press F2 to edit its formula.
Change a formula such as =A1*B1 to =ROUND(A1*B1,2). Replace A1*B1 with the actual calculation used in your worksheet.
If a later formula must use a rounded subtotal, create that subtotal with ROUND first, for example =ROUND(C2-D2,2), then reference the rounded subtotal cell in the final total.
Select the corrected cell and drag the fill handle down the column, or copy the cell and use Home > Paste to apply the formula to the remaining employee rows.
Select the currency column and use Home > Number Format to display two decimal places. Compare several row totals after recalculation to confirm the formula results match the required payroll rule.

Do not replace payroll calculations with TRUNC
Use this guidance when considering TRUNC as a blanket fix for decimal differences across a payroll sheet.
Avoid workbook-wide Precision as Displayed for routine payroll rounding
Use this caution when considering a workbook option that forces values to match their displayed number of decimal places.
Round payroll amounts to two decimals in WPS Spreadsheets
WPS Spreadsheets lets you apply ROUND directly in payroll formulas so pay, deductions, and totals calculate using the intended two-decimal values. Its familiar spreadsheet formula workflow makes it easy to open an existing workbook, update formulas, and review results.
- 1. Open the payroll workbook: In WPS Office, select Spreadsheets > Open and choose the Excel payroll workbook.
- 2. Edit the first currency formula: Click the first pay or deduction result cell, then edit its formula in the Formula Bar.
- 3. Apply the ROUND function: Enter a formula such as =ROUND(A2*B2,2) to round the calculated amount to two decimal places.
- 4. Copy the formula to employee rows: Drag the fill handle from the corrected formula cell down the payroll column to apply it to additional rows.
- 5. Set the currency display: Select the payroll amount cells and choose Home > Number Format to show two decimal places while the formula controls the actual rounding.

Frequently Asked Questions
Why do payroll totals differ when every cell shows two decimal places?
A two-decimal number format changes only what you see. The cells may still store and calculate with additional decimal digits. Use a formula such as =ROUND(A1*B1,2) when the stored result must be rounded to cents.
What is the difference between ROUND and TRUNC in a payroll formula?
ROUND returns the nearest value at the requested decimal place, while TRUNC simply removes digits after that place. For example, ROUND(18.756,2) returns 18.76, but TRUNC(18.756,2) returns 18.75.
Where should I put ROUND in a payroll worksheet?
Place ROUND around the calculation that creates each amount that must be rounded, such as gross pay, a deduction, or a tax amount. If later formulas must use a rounded subtotal, calculate that subtotal in its own ROUND formula before referencing it.
Can I apply TRUNC or ROUND to an entire Excel worksheet at once?
There is no safe blanket operation that automatically rewrites every calculation correctly. Update the relevant formula columns, then use the fill handle or copy and paste to apply the corrected formula to the remaining rows.
Should I use Precision as Displayed to fix payroll rounding differences?
Usually, no. Precision as Displayed can permanently alter stored values throughout a workbook and may affect unrelated sheets. Explicit ROUND formulas are more controlled and make the intended payroll rounding rule clear.




