VLookup for Multiple Sheets with Example – Overview
How To VLookup in Multiple Tables in excel is a video demonstration of performing VLookup for values in more than one data range or a table.
VLookup helps you to lookup for values in a single data range or a table. However, using vLookup with the IFERROR function, we can lookup in more than one data range or table.
So far, we have learned how to look up values in the same workbook and values from a different workbook. Through this demonstration, we help you to learn how to perform vlookup and look for values in more than one data range.
The IFERROR Function
We also cover the IFERROR function in this video demonstration. By the end of this video demonstration, you should be comfortable to use IFERROR along with VLookup. In case if you are not familiar with the nested function concept, please visit this article to familiarise yourself with the idea of the nested functions.
VLookup Practice Data File
If you plan to practice and follow along with me in this demonstration, kindly ensure to download the practice workbook on your computer.
Download free Excel database xlsx format
If you are considering to practice more, you may download a free Excel database in xlsx format using the link below.
To begin, We Run the vlookup and look for employee IDs in table 1 to find the full name of a given employee. The employee IDs that you see here have come from all three tables [Table 1, Table 2, and Table 3] worksheets listed in the practice workbook. We now run the following VLookup:
VLOOKUP(A2, 'Table 1'!A:B, 2, 0)
Looking in one table does not fetch the names of all the employees and return us an error #N/A, indicating the value is not found in the given range.
To handle this situation, we make use of the IFERROR function. The IFERROR function handles errors in functions and formulas. The IFERROR function takes two arguments, value and value_if_error.
Now that we know what the IFERROR function capabilities are, let us creatively use this function to run a second VLookup in case the first one returns an error. When the VLookup cannot find lookup value in the given range, it returns #N/A error. Here are some of the errors with their cause and description that you might come across in Microsoft Excel that can be handled using the IFERROR function.
Types of Errors in Excel
|#N/A||No value available||Technically, this is not an error value but a special value to indicate that you don’t yet have the necessary value.|
|#DIV/0||Division by zero||The division operation in your formula refers to a cell that contains the value 0 or is blank.|
|#NAME?||Excel doesn’t recognize a name||This error value appears when range name is written incorrectly, refer to a deleted range name, or forget to mention quotation marks around a text string in a formula.|
|#REF!||Invalid cell reference||This error occurs when you delete a cell referred to in the formula or if you paste cells over the ones referred to in the formula.|
|#NUM!||Problem with a number in the formula||This error can be caused by an invalid argument in an Excel function or a formula that produces a number too large or too small to be represented in the worksheet.|
|#VALUE!||The wrong type of argument or operator in a function.||This error is most often the result of specifying a mathematical operation with one or more cells that contain text.|
|#NULL!||You specified an intersection of two cell ranges whose cells don’t actually intersect||Space indicates an intersection, this error will occur if you insert a space instead of a comma (the union operator) between ranges used in function arguments.|
|#######||The column is not wide enough||This error appears when a column is not wide enough or a negative date or time is used.|
Run VLookup inside IFERROR Function
We now place the VLookup function as the first argument of the IFERROR function. If the V lookup cannot find the given value in the specified range, it returns the #N/A error. Upon receiving #N/A error, the IFERROR function triggers the second argument of the IFERROR function. Using this second argument segment as an opportunity, we place the second we look up To lookup values in table 2. The following is the sample of the function:
IFERROR(VLOOKUP(A2, 'Table 1'!A:B, 2, 0), VLOOKUP(A2, 'Table 2'!A:B, 2, 0))
We now have two VLookups in action. The first one is passed as the first argument of the IFERROR function, which is looking for values in table 1. If the first lookup returns error, the second argument of the IFERROR function gets engaged where we have 2nd VLookup looking for values in table 2.
You may see an error when running lookups in both tables where the values could not be found in table 1 or table 2.
To handle the situation, we place the entire statement of the IFERROR function along with both the VLookups, as the first argument of a new IFERROR function.
In case of failure of both these lookups, we get an error in return. The error triggers the IFERROR function to activate the second argument. Using this trigger as an opportunity, we place the third VLookup to lookup for values in table 3 in the second argument of the IFERROR function. The following is the statement with two IFERROR functions and three VLookups.
=IFERROR(IFERROR(VLOOKUP(A2, 'Table 1'!A:B, 2, 0), VLOOKUP(A2, 'Table 2'!A:B, 2, 0)), VLOOKUP(A2, 'Table 3'!A:B, 2, 0))
Since we have the values are taken from table 1, table 2, 2, and table 3, upon dragging the function down, all the names shall be found.
VLookup in Multiple Tables Video Tutorial
If you desire to watch and learn how to use vlookup in excel, here is a quick demonstration on how to do vlookup in excel to lookup for values in more than one table.
Excel Learning Series – TOC
- Excel 2016 – Basics – Find Sum, Average, Min and Max
- Excel 2016 Difference Between Formulas and Functions
- Excel 2016 Copy Formulas or Functions
- Microsoft Excel Auto Fill
- Excel 2016 Manage Views using Freeze Panes
- Microsoft Excel – Saving Workbooks
- Excel Upper and Lower Text Functions
- Excel 2016 – Text Function – Proper
- Excel Text Functions – Trim Function
- Excel – Text Function Left Function
- Excel Text Function – Right Function
- Excel Text Functions – MID Function
- Excel Concatenate Text Function
- Excel Nested Functions
- Excel Search Function
- Excel – Calculate Age using Date Function Today
- Calculate Tenure in Excel with Days Function
- Autofill Dates in Excel
- Formatting Dates in Excel
- Excel Date Format Shortcut
- Calculating Sum of Time in Excel
- Calculate Expiry Date in Excel 2016 – EDATE
- Find Age or Tenure using DATEDIF in Excel 2016
- RandBetween – Generate Random Dates in Excel 2016
- Excel Weekday Function
- Excel WeekNum and ISOWeekNum Functions
- Excel Networkdays and Excel Networkdays.INTL
- Excel Workday and Workdays INTL Functions
- Excel DATEVALUE AND TIMEVALUE
- Calculate Time Difference in Excel
- Calculate Quarter in Excel
- Rounding Day, Hour and Minutes in Excel
- Excel Pay Rate and Downtime Cost Calculation
- Excel Logical Functions IF, AND, OR
- Calculate Bonus in Excel Using IF Function
- Excel Learning – SumIF and SumIFS
- How to use Excel Count Functions
- How to use VLOOKUP in Excel
- How to vLookup in a different workbook in Excel
- VLookup for Multiple Sheets with Example
- Excel Custom Quarters
We hope you find this article useful. In case you are stuck and or need help, feel free to drop a comment below or submit your question. Do share it further and add your feedback about the article in the comments section.