Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Two-column Lookup in Excel
  • VLOOKUP function: Description, Usage, Syntax, Examples and Explanation
  • How to get relative column numbers in a range in Excel
  • How to retrieve first match between two ranges in Excel
  • How to use Excel LOOKUP Function

Data Analysis Examples

  • Excel Line Chart
  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • How To Perform and Interpret Regression Analysis in Excel
  • Get column name from index in Excel Table
  • How to create running total in an Excel Table

Data Validation Examples

  • Excel Data validation must begin with
  • Excel Data validation allow uppercase only
  • Excel Data validation unique values only
  • Excel Data validation must contain specific text
  • Excel Data validation specific characters only

Find missing values in Excel

by

This tutorial shows how to Find missing values in Excel using the example below;

Formula

=IF(COUNTIF(list,value),"OK","Missing")

Explanation

If you want to find out what values in one list are missing from another list, you can use a  simple formula based on the COUNTIF function.

The COUNTIF function counts cells that meet supplied criteria, returning the number of occurrences found. If no cells that meet criteria are found, COUNTIF returns zero. You can use behavior directly inside an IF statement to identify values that have a zero count (i.e. values that are missing).

Worked Example:   SUMPRODUCT count multiple OR criteria in Excel

In the example shown, the formula in G6 is:

=IF(COUNTIF(list,F6),"OK","Missing")

where “list” is a named range that corresponds to the range B6:B11.

The IF function requires a logical test to return TRUE or FALSE. In this case, if a value is found, a positive number is returned by COUNTIF, which evaluates to TRUE, causing IF to return “OK”. If no value is found, zero is returned, which evaluates to FALSE, and IF returns “Missing”.

Worked Example:   Find most frequent text within a range with criteria in Excel

Alternative with MATCH

You can also test for missing values using the MATCH function. MATCH finds the position of an item in a list and will return the #N/A error when a value is not found. You can use this behavior to build a formula that returns “Missing” or “OK” by testting the result of MATCH using another function called ISNA. ISNA returns true only when it receives the #N/A error.

Worked Example:   Running count of occurrence in list in Excel

To use MATCH as shown in the example above, the formula is:

=IF(ISNA(MATCH(F6,list,0)),"Missing","OK")

Post navigation

Previous Post:

Find lowest n values in Excel

Next Post:

Exact match lookup with INDEX and MATCH in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • Clean and reformat telephone numbers using SUBSTITUTE function in Excel
  • Manipulating text strings using Left, Mid, Right, Len, Substitute in Excel
  • How to count total words in a cell in Excel
  • How to count total words in a range in Excel
  • How to check if cell contains number in Excel
  • How to Calculate Age in Excel
  • Count birthdays by month in Excel
  • Generate series of dates by weekends in Excel
  • Dynamic date list in Excel
  • Get fiscal year from date in Excel
  • AMORDEGRC function: Description, Usage, Syntax, Examples and Explanation
  • AMORLINC function: Description, Usage, Syntax, Examples and Explanation
  • PMT, RATE, NPER, PV and FV Financial Functions in Excel
  • XIRR function: Description, Usage, Syntax, Examples and Explanation
  • Calculate periods for annuity in Excel
Acronyms, Abbreviations, Initialism & What They Stand For
© 2022 xlsoffice . All Right Reserved. | Teal Smiles