How to Match Whole Numbers with Decimal Values in Excel
Question details
The user needs a way to match whole numbers in one column with the integer portion of decimal numbers in another column, returning a TRUE result for matches.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Comparing two lists of numbers where one list contains whole numbers and the other contains decimals, seeking exact matches on the integer level.
- Observed behavior
- The goal is to return a TRUE boolean value when the whole number in Column B successfully matches the rounded-down integer portion of a decimal in Column A.
Ensure that your data columns are formatted as numbers and remove any leading or trailing text spaces that might interfere with formula calculations.
Use the INT and MATCH Functions to Compare Integer Values
Extract the integer portion of your decimal values using the INT function, then use MATCH and ISNUMBER to check for exact whole-number matches.
This is the most direct method to solve the problem. The INT function automatically strips away the decimal portion (e.g., turning 4760.001 into 4760). By nesting this inside a MATCH function, Excel can compare the whole numbers accurately.
Click on the first cell in Column C (e.g., C1) where you want the TRUE or FALSE result to appear.
Type the formula =IF(ISNUMBER(MATCH(B1,INT(A:A),0)),TRUE,FALSE) into the formula bar.
Depending on your specific version of Excel, comparing an entire column array like INT(A:A) might require you to press Ctrl + Shift + Enter instead of just Enter.
Click and hold the small square at the bottom-right corner of cell C1, then drag it down to apply the formula to the remaining rows in your data set.

Create a Helper Column for Simpler Formulas
If you are new to Excel and complex nested formulas are intimidating, using a helper column simplifies the process by separating the calculation steps.
Easily Match and Process Complex Data with WPS Spreadsheet
WPS Spreadsheet provides seamless support for all standard Excel functions, including INT, MATCH, and ISNUMBER. You can solve complex data matching tasks quickly and accurately with its built-in dynamic array support.
- 1. Open your workbook in WPS: Launch WPS Office and open your .xlsx spreadsheet containing the whole numbers and decimal values.
- 2. Apply the INT and MATCH formula: Select the target cell in your result column and enter =IF(ISNUMBER(MATCH(B1,INT(A:A),0)),TRUE,FALSE).
- 3. Calculate and auto-fill: Hit Enter to calculate the match result. Double-click the fill handle at the bottom-right corner of the cell to apply the matching logic to all your data rows instantly.

Frequently Asked Questions
Why does my formula return an error (#N/A or #VALUE!) instead of TRUE or FALSE?
This usually happens if the data ranges contain text formatted as numbers, or if you are using an older version of Excel that does not support dynamic arrays. Ensure columns A and B are formatted as Numbers. If using an older version, evaluating an entire column array like INT(A:A) requires executing it as an array formula by pressing Ctrl + Shift + Enter.
What is the difference between the INT and TRUNC functions in this scenario?
For positive numbers, INT and TRUNC will yield the same result (e.g., both turn 4760.001 into 4760). However, for negative numbers, INT rounds down to the lower integer (e.g., -4.3 becomes -5), whereas TRUNC simply drops the decimal (e.g., -4.3 becomes -4). If your data includes negative numbers, TRUNC might be the better choice.
Can I highlight the matched numbers in Column B instead of returning TRUE in a separate column?
Yes, you can use Conditional Formatting. Select the data in Column B, navigate to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format, and enter the formula =ISNUMBER(MATCH(B1,INT($A:$A),0)). Choose a highlight fill color and click OK.




