Identify missing values in a column using excel formula
Question: I want to find missing numbers in a range?
Answer: C1 and C2 contains the range boundaries, A2:A6 (List) contains the list.
Formula in B5:B15:
=SMALL(IF(ISERROR(MATCH(ROW(INDIRECT(C1&":"&C2));List;0));ROW(INDIRECT(C1&":"&C2));"");ROW()-ROW(missing_list_start)+1) + CTRL + SHIFT + ENTER
Excel 2007 users can remove any #NUM errors with this formula:
=IFERROR(SMALL(IF(ISERROR(MATCH(ROW(INDIRECT(C1&":"&C2));List;0));ROW(INDIRECT(C1&":"&C2));"");ROW()-ROW(missing_list_start)+1);"") + CTRL + SHIFT + ENTER
Named ranges
List (A2:A6)
missing_list_start (B5)
How to customize the formula to your excel spreadsheet
Change the named ranges.
Download excel sample file for this tutorial.
missing-values-in-a-column.xlsx
(Excel 2007 Workbook *.xlsx)
Functions in this article:
MATCH(lookup_value;lookup_array; [match_type]
Returns the relative position of an item in an array that matches a specified value
INDEX(array,row_num,[column_num])
Returns a value or reference of the cell at the intersection of a particular row and column, in a given range
IF(logical_test;[value_if:true];[value_if_false])
Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE
INDIRECT(ref_text,[a1])
Returns the reference specified by a text string
ROW(reference) returns the rownumber of a reference
SMALL(array,k) Returns the k-th smallest row number in this data set.
Related posts:
- Identify missing values in two columns using excel formula
- Identify largest text value in a column using array formula in excel
- Identify missing three character alpha code numbers in excel
- Identify missing numbers in a range in excel
- Extract a list of duplicates from a column using array formula in excel
- Identify duplicate invoice records in excel
- How to automatically fill all blanks with missing data or formula
- How to calculate missing months in a given date range in excel
- Unique list to be created from a column where an adjacent column has text cell values
- Filter a column and create a new unique list sorted from A to Z using array formula in excel



Leave a Reply