Count Excel Values That Differ After Rounding to One Decimal Place
Question details
Count values that differ when compared at one decimal place.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to compare values at one decimal place, but the data layout and exact comparison criteria are not provided.
- Observed behavior
- A count is needed for values that meet the intended comparison criteria after rounding to one decimal place.
Identify the ranges to compare and confirm whether you want to count row-by-row mismatches or distinct rounded values. The example below assumes two equally sized ranges containing numeric values without errors.
Count row-by-row differences after rounding in Excel
Use this method when each value in one column should be compared with the value on the same row in another column.
ROUND converts each value to one decimal place before comparison. SUMPRODUCT then counts the rows where the rounded values are unequal.
Arrange corresponding numeric values in A2:A100 and B2:B100, with each pair on the same row. Adjust the ranges in the formula if your data is elsewhere.
Select an empty cell and enter =SUMPRODUCT(--(ROUND(A2:A100,1)<>ROUND(B2:B100,1))), then press Enter.
Check the result cell for the number of rows whose values differ after rounding. For example, 1.24 and 1.26 count as different because they round to 1.2 and 1.3.

Compare rounded values in WPS Spreadsheet
Use ROUND and SUMPRODUCT in WPS Spreadsheet to compare corresponding values at one decimal place and count mismatched rows.
- 1. Open your workbook: Open WPS Spreadsheet and use Open to select your Excel workbook.
- 2. Check your data: Locate the two equally sized ranges of numeric values you want to compare, such as A2:A100 and B2:B100.
- 3. Enter the formula: Click an empty cell and enter =SUMPRODUCT(--(ROUND(A2:A100,1)<>ROUND(B2:B100,1))), changing the ranges if needed.
- 4. View the count: Press Enter and read the number of mismatched rounded pairs in the formula cell.

Frequently Asked Questions
Does this formula count pairs that differ by exactly 0.1?
No. It counts any pair whose values are unequal after each is rounded to one decimal place. A separate formula is needed to test for a difference of exactly 0.1.
What if my values are in different columns?
Replace A2:A100 and B2:B100 in the formula with your actual ranges. Make sure the ranges have the same number of rows and that corresponding values are aligned.
Does the formula count distinct rounded values?
No. It counts row-by-row mismatches between two ranges. Counting distinct rounded values is a different task and depends on your Excel version and data layout.
Why might the formula return an error?
Check the referenced cells for text or errors and make sure both ranges are the same size. The example assumes numeric values without errors.




