VLookup for Multiple Sheets with Example

vlookup formula in excel with example

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.

Lets Roll!

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/ANo value availableTechnically, this is not an error value but a special value to indicate that you don’t yet have the necessary value.
#DIV/0Division by zeroThe division operation in your formula refers to a cell that contains the value 0 or is blank.
#NAME?Excel doesn’t recognize a nameThis 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 referenceThis 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 formulaThis 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 intersectSpace 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 enoughThis 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.

vlookup for multiple sheets with example

Excel Learning Series – TOC

  1. Excel 2016 – Basics – Find Sum, Average, Min and Max
  2. Excel 2016 Difference Between Formulas and Functions
  3. Excel 2016 Copy Formulas or Functions
  4. Microsoft Excel Auto Fill
  5. Excel 2016 Manage Views using Freeze Panes
  6. Microsoft Excel – Saving Workbooks
  7. Excel Upper and Lower Text Functions
  8. Excel 2016 – Text Function – Proper
  9. Excel Text Functions – Trim Function
  10. Excel – Text Function Left Function
  11. Excel Text Function – Right Function
  12. Excel Text Functions – MID Function
  13. Excel Concatenate Text Function
  14. Excel Nested Functions
  15. Excel Search Function
  16. Excel – Calculate Age using Date Function Today
  17. Calculate Tenure in Excel with Days Function
  18. Autofill Dates in Excel
  19. Formatting Dates in Excel
  20. Excel Date Format Shortcut
  21. Calculating Sum of Time in Excel
  22. Calculate Expiry Date in Excel 2016 – EDATE
  23. Find Age or Tenure using DATEDIF in Excel 2016
  24. RandBetween – Generate Random Dates in Excel 2016
  25. Excel Weekday Function
  26. Excel WeekNum and ISOWeekNum Functions
  27. Excel Networkdays and Excel Networkdays.INTL
  28. Excel Workday and Workdays INTL Functions
  30. Calculate Time Difference in Excel
  31. Calculate Quarter in Excel
  32. Rounding Day, Hour and Minutes in Excel
  33. Excel Pay Rate and Downtime Cost Calculation
  34. Excel Logical Functions IF, AND, OR
  35. Calculate Bonus in Excel Using IF Function
  36. Excel Learning – SumIF and SumIFS
  37. How to use Excel Count Functions
  38. How to use VLOOKUP in Excel
  39. How to vLookup in a different workbook in Excel
  40. VLookup for Multiple Sheets with Example
  41. Excel Custom Quarters
  42. Vlookup Return Custom Value

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.

About Syed Hussaini

I am a Support Specialist with 15+ Years of experience and exposure in Training, website development on WordPress, Joomla, and Google Sites, Customer Support, IT Operations, Team Management, Knowledge Management. My engagement in a corporate environment and freelance projects has taught me to be highly productive and independent.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.