EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Certification Courses
  • 120+ Courses All in One Bundle
  • Login
Home Excel Excel Resources Lookup & Reference Functions in Excel IFERROR with VLOOKUP in Excel
Secondary Sidebar
Excel Functions
  • Excel Tips
    • Recover Document in Excel
    • Excel Shortcut to Select Row
    • Excel Header Row
    • Excel Insert Button
    • Excel Translate
    • Budget in Excel
    • KPI Dashboard in Excel
    • Blank Invoice Excel Template
    • Write Formula in Excel
    • Auditing Tools in Excel
    • Autofit Row Height in Excel
    • Formatting Text in Excel
    • Add Rows in Excel Shortcut
    • Divide Cell in Excel
    • Compare Two Columns in Excel for Matches
    • Excel Troubleshooting
    • Unprotect Excel Workbook
    • Subtract Date in Excel
    • Carriage Return in Excel
    • Negative Numbers in Excel
    • Worksheets in Excel
    • Excel Match Multiple Criteria
    • Exponential Moving Average Formula
    • Sentence Case in Excel
    • Excel Reverse Order
    • Excel Timesheet Template
    • Weighted Average in Excel
    • CTRL Shift-Enter in Excel
    • Excel Expense Tracker
    • INDEX MATCH Function in Excel
    • Percent Change in Excel
    • Drag and Drop in Excel
    • Shade Alternate Rows in Excel
    • Excel Database Template
    • Inverse Matrix in Excel
    • New Line in Excel Cell
    • Format Cells in Excel
    • Excel Text with Formula
    • Project Management Template in Excel
    • Vlookup vs Index Match
    • Embedded in Excel
    • Count Colored Cells in Excel
    • Excel Hacks
    • Column Header in Excel
    • Database Function in Excel
    • Excel Spell Check
    • Linear Interpolation in Excel
    • Convert Excel to CSV
    • Excel Not Responding
    • Delta Symbol in Excel
    • Excel Mortgage Calculator
    • Excel Show Formula
    • Break Links in Excel
    • VLOOKUP Examples in Excel
    • Alternate Row Color Excel
    • Checklist in Excel
    • Microsoft Office Tips
    • Excel vs Access
    • Excel Change Case
    • Count Characters in Excel
    • Formula Bar in Excel
    • Invoice Template in Excel
    • Find and Replace in Excel
    • PowerPivot in Excel
    • Wildcard in Excel
    • Line Break in Excel
    • NULL in Excel
    • Text Formula in Excel
    • Family Tree in Excel
    • Insert Calendar in Excel
    • Page Setup in Excel
    • Search For Text in Excel
    • Switching Columns in Excel
    • 3D Cell Reference in Excel
    • Roadmap Template in Excel
    • Cell References in Excel
    • Excel Automation
    • Matching Columns in Excel
    • Evaluate Formula in Excel
    • How to Find Mean in Excel
    • How to Add Cells in Excel
    • Project Timeline in Excel
    • TODAY Formula in Excel
    • Poisson Distribution in Excel
    • YEAR Formula in Excel
    • REPLACE Formula in Excel
    • Create Spreadsheet in Excel
    • SEARCH Formula in Excel
    • HYPERLINK Formula in Excel
    • Pivot Table with Multiple Sheets
    • COLUMNS Formula in Excel
    • DAY Formula in Excel
    • RIGHT Formula in Excel
    • INDIRECT Formula in Excel
    • Excel IRR Formula
    • Pivot Table Sort
    • OR Formula in Excel
    • Pivot Table Formula in Excel
    • How to Edit Drop Down List in Excel?
    • WEEKDAY Formula in Excel
    • Chart Wizard in Excel
    • Time Difference in Excel
    • Lookup Table in Excel
    • SUBTOTAL Formula in Excel
    • LOOKUP Formula in Excel
    • Themes in Excel
    • Group Worksheets in Excel
    • Excel ISNUMBER Formula
    • 3D Maps in Excel
    • VLOOKUP Tutorial in Excel
    • Moving Columns in Excel
    • Grouping Columns in Excel
    • Excel Formula of Percentage
    • Excel Leading Zeros
    • Timesheet in Excel
    • Nested IF Formula in Excel
    • SUMIF Formula in Excel
    • Concatenation in Excel
    • Excel Insert Page Break
    • LEN Formula in Excel
    • Insert Comment in Excel
    • Excel Print
    • Fractions in Excel
    • Excel Add a Column
    • Borders in Excel
    • Excel Sum by Color
    • Excel vs Google Sheets
    • Calculate Percentage Increase in Excel
    • Excel Format Phone Numbers
    • Excel Search Box
    • Excel vs CSV
    • Excel vs Numbers
    • Excel Concatenate Date
    • Excel Bullet Points
    • Calculate Compound Interest in Excel
    • Find External Links in Excel
    • Excel Comma Style
    • Excel Remove Leading Spaces
    • Combine First and Last Name in Excel
    • How to Calculate Ratio in Excel
    • SUMPRODUCT Function with Multiple Criteria
    • Create Excel Template
    • Excel Greater than or Equal
    • Excel Keyboard Shortcuts
    • Excel Row vs Excel Column
    • Excel Operators
    • Excel Text Compare
    • Excel Uppercase Function
    • Excel Auto Numbering
    • Watermark in Excel
    • Excel Delete Row Shortcut
    • Excel Word Count
    • Row Count in Excel
    • Excel Grade Formula
    • Excel Percentage Difference
    • Excel Rows and Columns
    • Excel Group
    • Excel Move Columns
    • Excel Row Height
    • Excel Sparklines
    • Excel Drawing a line
    • Multiple IFS in Excel
    • Excel Strikethrough
    • Numbering in Excel
    • Share Excel Workbook
    • Excel Shortcut For Merge Cells
    • Excel OneDrive
    • Excel Track changes
    • Excel Hide Formula
    • Excel Filter Shortcuts
    • Excel 3D Reference
    • Protect Excel Workbook
    • Excel Moving Averages
    • Excel Row Limit
    • Excel Absolute Value
    • Excel Print Area
    • Excel Format Painter
    • Excel Separate text
    • Excel Autofit
    • Excel Columns to Rows
    • Excel Paste Shortcut Option
    • Excel Rows to Columns
    • Excel Insert Row Shortcut
    • Excel Extensions
    • Excel Unmerge Cells
    • Divide in Excel Formula
    • Excel Compare Two Columns
    • Not Equal To Excel
    • Excel Remove Duplicates
    • Excel Remove Spaces
    • Excel Calculate Age
    • Copy Excel Sheet
    • Excel Conditional Formatting Based on Another Cell Value
    • Excel Cell Reference
    • Excel Split Cell
    • Excel Circular Reference
    • Highlight Every Other Row in Excel
    • Errors in Excel
    • Excel Delete Pivot Table
    • Excel Pivot Table
    • Subtraction in Excel
    • Count Unique Values in Excel
    • Excel Highlight Duplicates
    • Excel Data Formatting
    • Random Numbers in Excel
    • Page Numbers in Excel
    • Excel CAGR Formula
    • Excel Combine cells
    • IFERROR with VLOOKUP in Excel
    • Column Sort in Excel
    • Print Comments in Excel
    • Cheat Sheet of Excel Formulas
    • Remove Hyperlinks in Excel
    • Remove (Delete) Blank Rows in Excel
    • Relative Reference in Excel
    • Subscript in Excel
    • Superscript in Excel
    • Excel Insert Multiple Rows
    • Excel Absolute Reference
    • Unhide Columns in Excel
  • Excel Functions (12+)
  • Excel Tools (114+)
  • Financial Functions in Excel (17+)
  • Logical Functions in Excel (14+)
  • Lookup and Reference Functions in Excel (36+)
  • Maths Function in Excel (47+)
  • TEXT and String Functions in Excel (26+)
  • Date and Time Function in Excel (24+)
  • Statistical Functions in Excel (59+)
  • Information Functions in Excel (4+)
  • Excel Charts (56+)
  • Workplace Productivity (4+)
  • Microsoft Office Tools (15+)
  • Excel Formula and Functions (22+)
  • MS Excel Shortcuts (4+)
Excel Functions Courses
  • Online EXCEL COURSE
  • Online EXCEL ADVANCED Training

IFERROR with VLOOKUP in Excel

By Pradeep SPradeep S

IFERROR with VLOOKUP in Excel

Excel IFERROR with VLOOKUP (Table of Contents)

  • IFERROR with VLOOKUP in Excel
  • How to Use IFERROR with VLOOKUP in Excel?

IFERROR with VLOOKUP in Excel

Vlookup with the IFError function in Excel helps the user return an error message based on the user’s choice if any situation occurs. Vlookup function lookups at the values from the selected range or table and returns the exact or approximate match. But there comes some condition where we end up getting an error if the format of the range is not right or the value not found. In that case, with the help of the IFError function, we can see any customized message if the vlookup could not be able to find the value and gives the error.

Start Your Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

Below is the VLOOKUP Formula in Excel:

VLOOKUP Formula

The arguments of the VLOOKUP function are explained below:

  • lookup_ value: It is a number, a text string, or a cell reference, which is to be searched in the first column of a range of cells.
  • table_ array: It is the cell reference or the range name of the entire range of data.
  • col_ index_ num: It is the column from which the result is required.
  • range_ lookup: It is specified whether you want an exact or an approximate match. The possible value is TRUE or FALSE. The TRUE value returns an approximate match, and the FALSE value returns an exact match.

The IFERROR function returns a value one specifies id a formula evaluates to an error; otherwise, it returns the formula. It is used to trap and handle errors produced by other formulas or functions. IFERROR checks for the following errors: #N/A, #VALUE! , #REF! , #DIV/0! , #NUM! , #NAME? , or #NULL!

Note: If lookup_ value to be searched occurs more than once, then the VLOOKUP function will locate the first occurrence of the lookup_ value.

Below is the IFERROR Formula in Excel:

IFERROR Formula in Excel

The arguments of the IFERROR function are explained below:

  • value: It is the value, reference, or formula to check for an error.
  • value_ if_ error: It is the value to return if an error is found.

While using the VLOOKUP function in MS Excel, if the value searched for is not found in the given data, it returns a #N/A error.

Below is the IFERROR with VLOOKUP Formula in Excel:

=IFERROR( VLOOKUP (lookup_ value,table_ array,col_ index_ num, [range_ lookup]), value_ if_ error)

How to Use IFERROR with VLOOKUP in Excel?

IFERROR with VLOOKUP in Excel is very simple and easy to use. Let understand the working of IFERROR with VLOOKUP in Excel by some example.

You can download this IFERROR with VLOOKUP Excel Template here – IFERROR with VLOOKUP Excel Template

Example #1 – IFERROR with VLOOKUP

Let us take an example of the basic pay of the employees of a company.

Example 1

In the above figure, we have a list of employee ID, Employee Name and Employee basic pay.

Now, we want to search the employees’ basic pay with respect to Employee ID 5902.

We will use the following formula:

=VLOOKUP (F5, B3:D13, 3, 0)

IFERROR with VLOOKUP Example 1-2

But, that employee ID is not present in the list. In this situation, the VLOOKUP function will return the #N/A error.

IFERROR with VLOOKUP Example 1-3

So it is better to replace the #N/A error with a customized value that everyone can understand why the error is coming.

So, we will use IFERROR with VLOOKUP Function in Excel in the following way:

=IFERROR (VLOOKUP (F5, B3:D13, 3,0), “Data Not Found”)

IFERROR with VLOOKUP Example 1-4

We will observe that the error has been replaced with the customized value “Data Not Found“.

Result of Example 1

Example #2 – Use of IFERROR with VLOOKUP on a Fragmented dataset

We can also use IFERROR with the VLOOKUP function on the fragmented data sets from the same worksheet, workbook, or from different workbooks.

We can use the function in the same workbook or from different workbooks by the use of 3D cell referencing.

Let us take the example on the same worksheet to understand the usage of the function on the fragmented datasets in the same worksheet.

Example 2

In the above figure, we have two sets of data of basic pay of the employees. We have two data sets of employee ID, Employee Name and Employee basic pay.

Now, we want to search the employees’ basic pay with respect to Employee ID 5902.

We will use the following formula for searching data in table 1:

=VLOOKUP (G18, C6:E16, 3, 0)

IFERROR with VLOOKUP Example 2-2

The result will come as #N/A. As the data searched for is unavailable in the table 1 data set.

IFERROR with VLOOKUP Example 2-3

We will use the following formula for searching data in table 2:

=VLOOKUP( G18, J6:L16, 3, 0)

VLOOKUP Formula

The result will come as 9310. The employee ID 5902 is available in Table 2 data set.

IFERROR with VLOOKUP Example 2-5

Now, we want to compare both of the data sets of table 1 and table 2 in a single cell and get the result.

It is better to replace the #N/A error with a customized value that everyone can understand why the error is coming.

So we will replace the #N/A error with a customized text “Data Not Found”.

So, we will use IFERROR with VLOOKUP Function in Excel in the following way:

=IFERROR (VLOOKUP (lookup_ value, table_ array, col_ index_ num, [range_ lookup]), IFERROR (VLOOKUP (lookup_ value, table_ array, col_ index_ num, [range_ lookup]), value_ if_ error))

We have used the function in the example in the following way:

=IFERROR (VLOOKUP (G18, C6:E16, 3,0), IFERROR (VLOOKUP (G18, J6:L16, 3, 0),”Data Not Found”))

IFERROR with VLOOKUP Example 2-6

As the employee ID 5902 is available in the table 2 data set, the result will show as 9310.

Result

If the dataset does not contain the search value in both the table, the result will come as “Data Not Found” instead of the #N/A error.

Result of Example 2

Pros:

  • Useful to trap and handle errors produced by other formulas or functions.
  • IFERROR checks for the following errors: #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!

Cons:

  • IFERROR replaces all types of errors with the customized value.
  • If any other errors except the #N/A occur, the customized value specified will still be viewed in the result.

Things to Remember

  • If a value is not given, evaluation happens as an empty text or string (“) and not an error.
  • If value_ if_ error is given as an empty text (“”), nothing is displayed even when an error is found.
  • If IFERROR is given as a table array formula, it returns an array of results with one item per cell in the value field.

Recommended Articles

This has been a guide to IFERROR with VLOOKUP in Excel. Here we discuss the IFERROR with VLOOKUP Formula in Excel and How to use IFERROR with VLOOKUP in Excel, along with practical examples and a downloadable excel template. You can also go through our other suggested articles –

  1. IF VLOOKUP Formula in Excel
  2. VLOOKUP Function in Excel
  3. HLOOKUP in Excel
  4. VLOOKUP Examples in Excel
Popular Course in this category
Excel Training (23 Courses, 9+ Projects)
  23 Online Courses |  9 Hands-on Projects |  110+ Hours |  Verifiable Certificate of Completion
4.9
Price

View Course

Related Courses

Excel Advanced Training (16 Courses, 23+ Projects)4.9
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Excel Charts
  • Excel Tips
  • All Tutorials
Certification Courses
  • All Courses
  • Excel VBA Course - All in One Bundle
  • VBA Course
  • Excel Data Analysis Course
  • Excel for Marketing Course
  • Excel for Finance Course
  • Excel for HR Training

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

Download IFERROR with VLOOKUP Excel Template

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

Download IFERROR with VLOOKUP Excel Template

EDUCBA

डाउनलोड IFERROR with VLOOKUP Excel Template

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more