Excel Formula to Return Numbers Missing from Another Column
Question details
The user needs an Excel formula to extract only numeric values from one column while excluding any values that already appear in a second reference column.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Comparing two lists of data to filter and extract unique numeric values that exist in the primary column but are missing from the secondary column.
- Observed behavior
- The goal is to automatically output a new list containing only the missing numbers, ignoring text, blanks, and duplicates found in the second column.
Verify that your data is organized into two distinct columns and take note of the exact cell ranges (e.g., Column A for source data and Column B for the reference list) before applying the formulas.
Use the FILTER Function (For Microsoft 365 and Newer Versions)
The most efficient way to extract missing numbers is by using the modern FILTER function combined with COUNTIF and ISNUMBER.
This dynamic array formula automatically spills the results down the column without needing to be manually dragged. It checks if the values are numeric and whether they appear in the reference column.
Click on the cell where you want the extracted list of missing numbers to start (for example, cell D2).
Type the following formula: =FILTER($A$2:$A$20,((COUNTIF($B$2:$B$20,$A$2:$A$20)=0)*ISNUMBER($A$2:$A$20)))
Press Enter. The formula will automatically generate a dynamic list displaying the numeric values from column A that do not exist in column B.

Use INDEX and MATCH (For Older Excel Versions)
If you are using an older version of Excel that does not support dynamic array functions, you can use a combination of INDEX, MATCH, and COUNTIF to extract the missing numbers.
Easily Filter Missing Numbers with WPS Spreadsheet
You can effortlessly compare columns and extract missing numeric data using WPS Spreadsheet. With built-in support for advanced dynamic array functions like FILTER, processing complex datasets takes only seconds.
- 1. Open your dataset: Launch WPS Spreadsheet and open the document containing your two columns of data.
- 2. Select the output cell: Click the cell where you want to output the missing numbers.
- 3. Apply the FILTER formula: Enter =FILTER(A$2:A$20,(COUNTIF(B$2:B$20,A$2:A$20)=0)*ISNUMBER(A$2:A$20)) and press Enter.
- 4. View extracted data: WPS Spreadsheet will instantly process the array and spill the missing numeric values down the column.

Frequently Asked Questions
Can I modify the formula to extract both text and numbers missing from another column?
Yes. If you want to extract all values (including text) from column A that are missing in column B, you can remove the ISNUMBER requirement. Use this simplified formula: =FILTER(A$2:A$20,COUNTIF(B$2:B$20,A$2:A$20)=0).
Why does my INDEX MATCH formula return blank cells?
The IFERROR wrapper at the beginning of the formula is designed to return a blank cell ("") once it runs out of valid missing numbers to extract. If the very first cell is blank, double-check your cell ranges and ensure the expanding reference (e.g., E$1:E1) correctly points to the row immediately above your starting formula.
What does the ISNUMBER function do in the FILTER formula?
The ISNUMBER function checks each cell in your specified range to verify if it contains a numeric value. It returns TRUE for numbers and FALSE for text or blank cells. Multiplying it with the COUNTIF logic ensures that only numerical data is considered for extraction.




