Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Conflicting Multiple Conditional Formatting Rules in Excel
  • How to Create One and Two Variable Data Tables in Excel
  • Subtotal function in Excel
  • Understanding Pivot Tables in Excel
  • Add Outline to Data in Excel

References

  • Find closest match in Excel
  • How to use Excel VLOOKUP Function
  • How to get first column number in range in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • MATCH function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Excel Data validation allow weekday only
  • Excel Data validation whole percentage only
  • Excel Data validation require unique number
  • Excel Data validation must begin with
  • Excel Data validation exists in list

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:   How to calculate next scheduled event 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:   Two-way lookup with INDEX and MATCH 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:   Excel Data validation specific characters only

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

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

Post navigation

Previous Post:

Weighted average in Excel

Next Post:

Win loss points calculation 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

Logical Functions

  • IF with wildcards in Excel
  • How to use IFS function in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • Check multiple cells are equal in Excel
  • How to use Excel NOT Function

Date Time

  • SECOND function: Description, Usage, Syntax, Examples and Explanation
  • Get days, hours, and minutes between dates in Excel
  • How to join date and text together in Excel
  • How to calculate percent of year complete in Excel
  • Get project end date in Excel

Grouping

  • Calculate conditional mode with criteria in Excel
  • Group numbers with VLOOKUP in Excel
  • If cell contains one of many things in Excel
  • Running count group by n size in Excel
  • Map inputs to arbitrary values in Excel

General

  • How to get original number from percent change in Excel
  • How to count total number of cells in a rectangular range in Excel
  • How to Create Calendar in Excel
  • Mark Workbook as Final in Excel
  • How to get random value from list or table in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning