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

Data Analysis

  • Add Outline to Data in Excel
  • How to create Gauge Chart in Excel
  • How to do a t-Test in Excel?
  • Conditional Formatting Data bars Examples in Excel
  • Error Bars in Excel

References

  • How to get address of first cell in range in Excel
  • How to use Excel LOOKUP Function
  • Offset in Excel
  • How to create dynamic named range with OFFSET in Excel
  • Create hyperlink with VLOOKUP in Excel

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation number multiple 100
  • Excel Data validation only dates between
  • Excel Data validation allow weekday only
  • Excel Data validation must contain specific text

Match first error in Excel

by

This tutorial shows how to Match first error in Excel using the example below;

Formula

{=MATCH(TRUE,ISERROR(range),0)}

Explanation

If you need to match the first error in a range of cells, you can use an array formula based on the MATCH and ISERROR functions.

In the example shown, the formula is:

{=MATCH(TRUE,ISERROR(B4:B11),0)}

This is an array formula, and must be entered using Control + Shift + Enter (CSE).

Worked Example:   How to retrieve first match between two ranges in Excel

How this formula works

Working from the inside out, the ISERRROR function returns TRUE when a value is a recognized error, and FALSE if not.

When given a range of cells (an array of cells) ISERROR function will return an array of TRUE/FALSE results. In the example, this resulting array looks like this:

Worked Example:   Lookup entire column in Excel

{FALSE;FALSE;FALSE;FALSE;FALSE;TRUE;FALSE;FALSE}

Note that the 6th value (which corresponds to the 6th cell in the range) is TRUE, since cell B9 contains #N/A.

The MATCH function is configured to match TRUE in exact match mode. It finds the first TRUE in the array created by ISERROR and returns the position. If no match is found, the MATCH function itself returns #N/A.

Worked Example:   Multi-criteria lookup and transpose in Excel

Finding the first NA error

The formula above will match any error. If you want to match the first #N/A error, just substitute ISNA for ISERROR:

{=MATCH(TRUE,ISNA(B4:B11),0)}

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

  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • Check multiple cells are equal in Excel
  • How to use Excel OR Function
  • How to use Excel XOR Function

Date Time

  • HOUR function: Description, Usage, Syntax, Examples and Explanation
  • Get days before a date in Excel
  • Display the current date in Excel
  • Extract date from a date and time in Excel
  • List holidays between two dates in Excel

Grouping

  • Map inputs to arbitrary values in Excel
  • Group times into 3 hour buckets in Excel
  • Group times into unequal buckets in Excel
  • How to randomly assign data to groups in Excel
  • Running count group by n size in Excel

General

  • Convert column number to letter in Excel
  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
  • Find Most Frequently Occurring Word in Excel Worksheet
  • Excel Operators
  • Print Excel Sheet In Landscape Or Portrait
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning